Thread: NPCs sleeping
View Single Post
  #15  
Old 02-19-2007, 09:29 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Googi View Post
Huh? Are you saying that the NPCs are asleep by default (i.e. they're asleep even though they haven't been commanded to sleep?)

If you want to wake up an NPC from another level, getnpc (or I guess now findnpc) should do the trick.
Or you could do something like
HTML Code:
npcs[testnpc(this.x, this.y)].trigger("activateNPC", "");
Reply With Quote