I made trigger that launch abil that cancel movement until cooldown is over. Trigger activates automaticaly after hero stops. How to block this abil for player while i still want to see ability button and cooldown in command panel?
Not sure, if there is a better way, but you could link the button to a dummy ability doing nothing. Just make it share the cooldown with your actual ability, which doesn't show up in the command card.
€ you will also need to add a validator or something, so the dummy ability cannot be used; otherwise you would be able to trigger the cooldown at will.
You could also make the ability auto-cast and validate movement, which could save you the trigger. Not a big deal, though.
As stated above use linked cooldown so the dummy ability in the command card shows the cooldown while not being the ability of interest.
Also you could just have a buff that disables movement which is applied to the unit when speed reaches 0 after having been greater than 0. This is pretty easy to set up using 3 buffs in a bistable state using Unit Compare Speed validators but two of the buffs disable each other unless the system is perturbed. in short when moving the disable movement buff is applied but disabled, when still the applying buff is disabled and stays disabled by the other buff as well as the applied buff until the unit moves again.
I made trigger that launch abil that cancel movement until cooldown is over. Trigger activates automaticaly after hero stops. How to block this abil for player while i still want to see ability button and cooldown in command panel?
Not sure, if there is a better way, but you could link the button to a dummy ability doing nothing. Just make it share the cooldown with your actual ability, which doesn't show up in the command card.
€ you will also need to add a validator or something, so the dummy ability cannot be used; otherwise you would be able to trigger the cooldown at will.
You could also make the ability auto-cast and validate movement, which could save you the trigger. Not a big deal, though.
As stated above use linked cooldown so the dummy ability in the command card shows the cooldown while not being the ability of interest.
Also you could just have a buff that disables movement which is applied to the unit when speed reaches 0 after having been greater than 0. This is pretty easy to set up using 3 buffs in a bistable state using Unit Compare Speed validators but two of the buffs disable each other unless the system is perturbed. in short when moving the disable movement buff is applied but disabled, when still the applying buff is disabled and stays disabled by the other buff as well as the applied buff until the unit moves again.
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