What is the best way to add a drowning effect to the game. So if a unit enters region water I want him to die after 60 seconds but if he leaves the area I don't want him to die. At the moment I've done this via expiration timer but I can only pause the timer and hence when you go back into the water area you will die quicker which I don't want to happen I just want the timer to reset
Any Ideas?
Below are my current triggers
(I'm pretty new at World Editor )
Any Ideas?
Below are my current triggers
Trigger:
- Unit - A unit enters Water <gen>
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Drowning Equal to 1
- Then - Actions
- Unit - Unpause the expiration timer for (Entering unit)
- Else - Actions
- If - Conditions
- Unit - Add a 60.00 second Generic expiration timer to (Entering unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Trigger:
- Unit - A unit leaves Water <gen>
- Unit - Pause the expiration timer for (Leaving unit)
- Set Drowning = 1
(I'm pretty new at World Editor )