PreCacheNPC

From NexusWiki
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.