Target Unit of Abilty

Bonzo

New Member
Reaction score
4
I'm not familiar with Jass and I'm not going to learn it in the next time, but I have a simple problem that can only be solved with Jass:

Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852274, GetTriggerUnit())

I need the "GetTriggerUnit" for a target unit of ability being cast. I already tried "GetTargetUnit", "GetTargetedUnit" and so on with no success. I also didnt find anything with the searchfunction after 10 minutes.

Thanks in Advance

Bonzo

edit: wrong forum I see...
 

Artificial

Without Intelligence
Reaction score
326
You could easily find that out by yourself, btw. Just do a GUI trigger that involves only this:
Code:
Set SomeUnit = (Target unit of ability being cast)
and then search for 'set udg_SomeUnit ='. The rest of that line is what you need. :p

But anyways, GetSpellTargetUnit() is what you need. :)
 

Bonzo

New Member
Reaction score
4
Thanks for the answer and the tip. Hope I can solve this problems on my own now.
+rep
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top