How to give Locust to a hero?

Status
Not open for further replies.

Zorobay

Member
Reaction score
1
Hi!

I found some kind of answer to this question. They said that you could use :
Trigger:
  • Custom script: call UnitAddAbility(GetEnumUnit(), 'Aloc')

Where enum i think is the same as Picked, is it?
But it doesn't work. So first of all...is GetEnumUnit = Picked Unit?
And if it is, what is wrong? Is this the way to give a hero Locust?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I believe you'll get more help if you put this in the JASS section.. But EGUI also has a function that gives units locust. Yeah, pretty sure they made it that way using JASS lines too.
 

baassee

Member
Reaction score
5
Lol just add the unit ability Locust to your hero. And yes GetEnumUnit() is the picked unit.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
There's a reason why he posted such a simple thing. Posted that he got an answer... He doesn't seem to understand JASS well, and for others to give him such an advanced answer obviously means it's not possible by GUI triggers. Try adding locust to a unit and you won't be able to find it in the drop down list.
 

Exide

I am amazingly focused right now!
Reaction score
448
Hi!

I found some kind of answer to this question. They said that you could use :
Trigger:
  • Custom script: call UnitAddAbility(GetEnumUnit(), 'Aloc')

Where enum i think is the same as Picked, is it?
But it doesn't work. So first of all...is GetEnumUnit = Picked Unit?
And if it is, what is wrong? Is this the way to give a hero Locust?

Yes. GetEnumUnit() = (Picked Unit.)
Just replace it with ..whatever unit your hero is.

It could be (Triggering unit) = GetTriggerUnit()
It could be a variable, Ie: Hero[1] = udg_Hero[1]
etc.
 

Romek

Super Moderator
Reaction score
963
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top