- Joined
- Aug 3, 2004
- Messages
- 2,891
How can I remove a unit with locust on demand? Using an expiration timer is not an option.
You can however put them in a group to be used later. You can then make a custom in range check on all units in that group (although less efficient due to JASS being interpreted slowly).Be aware that locust units are ignored for area unit enums, but are included for player unit enums.
call UnitAddAbility(udg_DUMMY, 'Aloc')
call ShowUnit(udg_DUMMY, false)
call call UnitRemoveAbility(udg_DUMMY, 'Aloc')
call ShowUnit(udg_DUMMY, true)