I am trying to make a spot where the player walks by an area, and will later walk by that area again and the 2nd time it triggers ai to spawn. I've tried to script this, but so far I've only gotten it to work when both of the triggers were together and the player is standing on both of them.
here is the script I've done so far.
Quote: (script static unit player
(unit (list_get (players) 0))
(script startup 1
(fade_in 0 0 0 200)
(script dormant 4
(script dormant 3
(sleep_until (volume_test_objects test2 (player)) 5)
(script startup 2
(sleep_until (volume_test_objects test (player)) 5)
I want to make it so that the 2nd trigger volume is activated by the 1st one and the 2nd trigger then spawns an ai.