So i have a script i'm trying to use, but when i do it doesn't do anything.
First. I wanted to make the rider ejection have a delay on it, seeing as half the time when you get flipped out, the vehicle turns right back over anyway. So i made this script.
(script continuous stuff
(set rider_ejection 0)
(sleep 90)
(set rider_ejection 1)
)
And hoped that for the most part between updates you would have time to roll back on top.
In theory this should turn off, wait 3 seconds, and flip it on then back off. But in game i notice no difference. It still automatically flips me out, i tried it numerous times. Any theory as to why it's not activating?
Second. I had a thought about making zombies scripted into a map.
(script dormant change
(change_team 0)
)
(script continuous check
(begin
(sleep_until (unit_get_health (unit (list_get (players) 0)) 0)
(wake change)) ;;checks if player has died, then switches team.
)
The problem is, if i do this for every player then any time the first person dies, everyone switches teams. Ideas? Lol.