a unit has a behavior that lasts 60 seconds and the duration bar is displayed above its head, counting down.
When the unit is near a Pylon, I want the behavior to be paused, as if time stands still. When the unit moves away from the Pylon, the duration starts ticking again.
The unit has a buff that lasts 60 seconds. In the "Effect - periodic" I set a Switch effect that checks via the validator "Location has Power" if the unit is in the power field. If the unit is in the Power Field, the buff is reapplied again and again and again... So the buff becomes "permanent" until the unit leaves the Power field
Hello,
a unit has a behavior that lasts 60 seconds and the duration bar is displayed above its head, counting down.
When the unit is near a Pylon, I want the behavior to be paused, as if time stands still. When the unit moves away from the Pylon, the duration starts ticking again.
Any ideas how to make this?
I finally found a solution!
The unit has a buff that lasts 60 seconds. In the "Effect - periodic" I set a Switch effect that checks via the validator "Location has Power" if the unit is in the power field. If the unit is in the Power Field, the buff is reapplied again and again and again... So the buff becomes "permanent" until the unit leaves the Power field