AddingEvents

TheOverWhelm

Member
Reaction score
16
-Putting in right category with more info-
Question is, I am confused on how to add events through JASS to other JASS functions. I'm assuming it can be done, since that's how GUI does it and many others I imagine.
call TriggerRegisterUnitEvent(SummonerDies, GetTriggerUnit(), EVENT_UNIT_DEATH )
Like this, how would I pass the trigger? SummonerDies (in that line) just goes to a 1 when it compiles.
The call is inside a trigger so there is a GetTriggerUnit() and such
The SummonerDies is within the map script.

Futurethanks
 

TheOverWhelm

Member
Reaction score
16
I do not need a system to detect anything with damage.
And my question will help me with later issues and is something I'd like to know.
 

Dirac

22710180
Reaction score
147
You're absolutely right.
To add an event to a function outside the trigger, you must create a global variable storing that trigger, add an action to that trigger, and add events to it the same way you posted you do.
 
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