View Single Post
  #4  
Old 01-20-2007, 08:10 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by konidias View Post
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.
Reply With Quote