How do I make an ability activate a behaviour, have it toggled on for 5 seconds, deactivate it, and then set it on a cooldown for 60 seconds?
With toggle you mean, that you can manually deactivate it, and the 5 seconds was just an example? So your problem would be, how to not use the cooldown when toggling on, but to start it only, when toggling off?
You will need two behaviours with the Behavior ability adding a disabling buff and your second buff having a Set effect with a Create Persistent effect that has a 5 sec delay before using the finishing effect of Issue Order to use the Behavior ability.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
How do I make an ability activate a behaviour, have it toggled on for 5 seconds, deactivate it, and then set it on a cooldown for 60 seconds?
You could a apply another behavior when the first one is expired and use a validator on your ability to check for the second behavior.
instant effect ability with a cooldown of 60 seconds, that apply a behaviour that last 5 seconds.
just copy stim pack and add the cooldown
With toggle you mean, that you can manually deactivate it, and the 5 seconds was just an example? So your problem would be, how to not use the cooldown when toggling on, but to start it only, when toggling off?
You will need two behaviours with the Behavior ability adding a disabling buff and your second buff having a Set effect with a Create Persistent effect that has a 5 sec delay before using the finishing effect of Issue Order to use the Behavior ability.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg