I think once a unit has the locust ability you can no longer refer to it normally, you need to save it into a variable before adding this ability and to remove it refer to the variable. But I am not sure about this; its something I was told long ago.How can I remove the locust ability from a unit?
I tried, but it doesn't work!JASS:call UnitRemoveAbility( Unit , 'Aloc' )
Actually, I believe locust is one of the abilities that can't ever be removed.
Once a unit has it, it will always have it.
I think once a unit has the locust ability you can no longer refer to it normally, you need to save it into a variable before adding this ability and to remove it refer to the variable. But I am not sure about this; its something I was told long ago.
local unit c = udg_Array[s]
Is there anything else I can use, that has a similar effect?
Might help.
Although if you can't remove the ability even if you have a pointer to the unit...no idea.
The reason I used locust to begin with was that I had two identical units(heroes). One of them needs to disappear for a while, and I thought the easyest thing would be to use the benefits from locust and making it invisible.
But is there anything else I can do instead?
Move him outside of the map...?
TryThe reason I used locust to begin with was that I had two identical units(heroes). One of them needs to disappear for a while, and I thought the easyest thing would be to use the benefits from locust and making it invisible.
But is there anything else I can do instead?
isn't there a action called
Unit - Hide unit
or something?
Try
Unit - Hide YourHero
call SetUnitX(unit,100000)
call SetUnitY(unit,100000)