Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-10-2008, 12:02 AM
RozenMaiden RozenMaiden is offline
Registered User
Join Date: Dec 2008
Posts: 27
RozenMaiden is on a distinguished road
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?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.