So confusing guys. This in fact might be working and the way I am testing it is not correct. here is some of the behaviour.

1. reload level and story. zombie spawns.
2. test the trigger a few times.. one Zombie once.

1. Reload level Nothing spawns.
2. reboot editor Nothing spawns...
3. reload level and story. zombie spawns once!!

what is happening here???

will test in game don't have time tonight.

IF
CharacterEnteredTrigger(_Character, TRIGGERGUID_Monkworks_eventTrigger_001_aa7348aa-423b-4b65-936b-a741fd61245b)
AND
GetPosition(TRIGGERGUID_Monkworks_spawnEventTrigger_000_8b450762-1957-408a-b91d-b6ce4353cf4a, _X, _Y, _Z)
AND
NOT DB_MonkWorksZombieDatabase(_)
AND
CharacterCreateAtPosition(_X, _Y, _Z, "CHARACTERGUID_Monkworks_Undead_Zombie000_2f62a479-299e-44e8-9688-8ac78bbce0f0", 1, _Zombie)
THEN
DB_MonkWorksZombieDatabase(_Zombie);
IF
CharacterDied(_Zombie)
AND
DB_MonkWorksZombieDatabase(_Zombie)
THEN
NOT DB_MonkWorksZombieDatabase(_Zombie);


Meh.. had to test in game...

Is working perfectly in game.

run into the level. Run through the trigger. spawns the zombie at the spwnpoint.. run back through to see if more spawn.. only one spawns.

leave the level return. one zombie..

Needs further testing...





Last edited by Detect; 11/01/18 03:17 AM.