NPCs incorrect information (alter npc load order?)
Hi,
so I currently have a little problem.
I have an npc that scans for a special type of other npcs in the npcs array of the level at onCreated(); now that worked fine, but now i'm scanning for 2 special types and a problem came up: it scans too early.
I wouldn't like to use sleep or something like that to delay the scan. Because if it scans at onCreated atleast one of the second-special-type npcs hasnt set its attribs (nick, etc) yet and thus isnt recognized as that special-type-npc by the main npc. Now my question is it possible to delay the loading of an npc? Like let it load and call onCreated() after all other npcs are loaded? |
|