• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
 
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