PreCacheNPC

From NexusWiki
Revision as of 08:03, 19 June 2009 by LordValarian (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PreCacheNPC(npcid);

This command can be mainly used in the Scene’s init, it preloads the given NPC’s animation, so that when it first sounds the program won’t lag. Max. 10 NPCs can be loaded simultaneously. After that, at the loading of another one the most rarely used NPC will be deleted.