- Joined
- Jan 23, 2015
- Messages
- 788
How do I make a cooldown for the Waygates to prevent units from spamming it, like:
Unit A is chasing unit B, unit B enters a waygate and teleports to the other side, unit A goes after him, then unit B goes back, unit A goes back too and so on to infinity.
I'm planning to make a cooldown of 5 seconds for each unit, and I still haven't come up with an idea on how to do that, and it's also not very efficient, cause after 5 seconds you can tp again, maybe I'll have to make it longer but I still need your ideas on this.
Unit A is chasing unit B, unit B enters a waygate and teleports to the other side, unit A goes after him, then unit B goes back, unit A goes back too and so on to infinity.
I'm planning to make a cooldown of 5 seconds for each unit, and I still haven't come up with an idea on how to do that, and it's also not very efficient, cause after 5 seconds you can tp again, maybe I'll have to make it longer but I still need your ideas on this.