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

[Trigger] Custom script to use an item ability

Status
Not open for further replies.
Oops, didn't catch that. Ok, use this:
  • Custom script: call IssuePointOrderById (GetTriggerUnit(), 'dust', GetUnitX(udg_Unit), GetUnitY(udg_Unit))
You can replace the GetTriggerUnit() with the unit you want. If, for example the unit you want is a pre-placed one, use this:
  • Set Unit = (your unit 000 <gen>)
  • Custom script: call IssuePointOrderById (udg_Unit, 'dust', GetUnitX(udg_Unit), GetUnitY(udg_Unit))
 
Sorry for the delay and the wrong replies, I checked it myself and it didn't work. I don't know why I said 'dust', when its raw data is 'Altb'. Anyway, I tested Altb and it doesn't work either. I finally managed to find the solution (tested and 100% working):
  • Custom script: call IssueImmediateOrderById (udg_TempUnit3, 852625)
 
Status
Not open for further replies.
Top