Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I am in the middle of a spell which involves making the caster untargetable and with no collision. When making the part which involves adding Locust to the casting unit, I couldn't find it.
Thanks. The adding part works but now I need a way to remove 'Locust' from the unit. I tried 'UnitRemoveAbility' instead of 'UnitAddAbility', but it doesn't work. How do I remove it?
Probably because units with locust sometimes can't be manipulated with triggers. The safest way is to add the unit to a variable, or work with the unit index, or a hashtable, or uni ID, or add the unit to a unit group and look for the unit in that group.
To remove Locust from a unit that is already Locust;
1. Hide the unit
2. While the unit is hidden, do the JASS function of UnitRemoveAbility to remove the Locust call UnitRemoveAbility(udg_Unit, 'Aloc')
3. Unhide the unit
4. Poof, you have partially complete remove the Locust of the unit.
Try download the test map below.
NOTE: Once you have done this, there is a minor bug which will affect the unit;
- Some spell does not properly target/hit the unit
- You can no longer click the unit to select it, you must drag-select the unit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.