Page 1 of 1

[bug (nope, solved)] local spawn broken ?

Posted: Tue Nov 25, 2014 12:28 am
by cromcrom
Hello.
It seems that

Code: Select all

local objecttomodify = spawn("dagger")
do spawn a dagger, while it seems it was supposed to create a ghost that we could set the properties of.

However now, it does spawn this item. I can set the properties, but when I reload the game, the set properties are gone, and I have a standard item.

Any ideas or confirmations ?

Re: [bug ?] local spawn broken ?

Posted: Tue Nov 25, 2014 12:37 am
by NutJob
I dynamically create my entire module with spawn without setting a single entity in it [a map] (much like how Scotty does his in his procedural module). So, yes, spawn works and any property can be changed, removed, and added (createComponent), and no, I don't lose "settings/values" on the objects created.

Re: [bug (nope, solved)] local spawn broken ?

Posted: Tue Nov 25, 2014 12:48 am
by cromcrom
Awww well, thanks, I checked, saving and reloading indeed do keep the properties, while pressing F5 returns the properties to basic. False alarm, thanks again.