PDA

View Full Version : Persistent npc after spawn_condition(...)


emho24
04-28-2017, 09:55 PM
I've setup an npc that I want to be able to spawn in a few different zones based on a random # check. I've successfully used the quest::spawn_condition() function to spawn/despawn him at will but only if my character is in the zone while I issue the command. Also I've noticed that if my logged in character leaves the zone, my recently spawned character is no longer up when I come back.

- is there a way to get this npc to persist regardless of whether or not a character is in the zone?
- i've not had success issuing the quest::spawn_condition command to spawn the mob if no charactedr is in the zone at the time. Is this a limitation?

emho24
04-28-2017, 11:38 PM
Nevermind, i still had some test script in the zone_controller that was despawning this mob. I would delete this thread if I could.