• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Remove Locust ability and make unit vulnerable

Status
Not open for further replies.
Level 1
Joined
Dec 16, 2009
Messages
4
How can i remove the Locust ability of a unit and make her vulenrable?

I already try this but it seems not work:

  • Unit - Hide X
  • Custom script - call UnitRemoveAbilityBJ( 'aLoc', udg_X )
  • Unit - Unhide X
  • Unit - Make X Vulnerable
PS: The Locust is add by trigger too.
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
First of all, it's not 'aLoc' but 'Aloc'.

For completely locust removal you have to use additional actions, because if you want know know hide/remove/unhide allows only given unit to be attacks, but it still can not be target of spells.
Use those actions to make it properly:
  • Actions
    • Set u = (Triggering unit)
    • Custom script: call UnitAddAbility(udg_u, 'Aloc')
    • Unit - Hide u
    • Custom script: call UnitRemoveAbility(udg_u, 'Aloc')
    • Unit - Unhide u
    • Unit - Add Bear Form u
    • Unit - Order u to Night Elf - Druid of Claw: Bear Form
    • Unit - Remove Bear Form from u
You can use any tranformation ability, just set Normal unit to your unit (same type) and Alternative to something else.

Removing/adding invurneability is always just:

  • Unit - Make X Inulnerable
  • Unit - Make X Vulnerable
 
Level 1
Joined
Dec 16, 2009
Messages
4
Niceee, the transformation solved the problem of the invulnerable and make the unit able to have the locust again without bug

Well... without the transformation the unit wouldn't completely removal the locust, as you said. Since locust was not completely removed the unit was invulnerable after doing this
  • Custom scriptcall UnitAddAbility(udg_u, 'Aloc')
  • Unit - Hide u
  • Custom script: call UnitRemoveAbility(udg_u, 'Aloc')
  • Unit - Make U Vulnerable
thanks alot

+rep
 
Status
Not open for further replies.
Top