Quote:
Originally Posted by konidias
No. "put npc"
Meaning it's not being created when the level is updated. It stays put.
edit: "created" doesn't tell when a level is updated either. just when an npc was created. I can't very well have the npc destroy when it's created, now can I?
|
Technically, you can.
HTML Code:
function onCreated()
{
this.curMode = !this.curMode; //Makes it true first time around...
if (!this.curMode)
{
this.destroy(); //Destroy once 'this.curMode' is back to false
}
}
However, I am not too sure if this would work. Would be better if there were a function.