Hello,
I need to be able to add or remove the abilty 'amov' at will. Sometimes I want my unit to be able to move and sometimes I need it to be stuck completely.
Thus I used this custom script :
call UnitRemoveAbility(gg_unit_H002_0008, 'Amov')
It works fine.
The issue is that when I am giving the abilty back this way :
call UnitAddAbility(gg_unit_H002_0008, 'Amov')
It does not work !
I have also tried to use call SetPlayerAbilityAvailable(Player(0), 'Amov', true), but is has no effect at all.
Any help would be appreciated.
Thanks.
I need to be able to add or remove the abilty 'amov' at will. Sometimes I want my unit to be able to move and sometimes I need it to be stuck completely.
Thus I used this custom script :
call UnitRemoveAbility(gg_unit_H002_0008, 'Amov')
It works fine.
The issue is that when I am giving the abilty back this way :
call UnitAddAbility(gg_unit_H002_0008, 'Amov')
It does not work !
I have also tried to use call SetPlayerAbilityAvailable(Player(0), 'Amov', true), but is has no effect at all.
Any help would be appreciated.
Thanks.