calling a trigger?

Insane!

Shh I didn't edit this, go away.
Reaction score
122
can some body explain in depth, what calling a trigger does?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Runs it.
Whatever you have there will be executed.
Usually used in reference to functions....
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
JASS:
function myFunc takes nothing returns nothing
    call BJDebugMsg("Function myFunc called")
endfunction

function someFunc takes nothing returns nothing
    call myFunc()
    //This "calls" myFunc, meaning its actions will be executed.
endfunction
 

PurgeandFire

zxcvmkgdfg
Reaction score
508
Yes, but you'll use TriggerExecute for the other triggers. If using a local trigger in the init trig of that trigger, I don't know if it will still register the global, I'm not sure... :\
 

Insane!

Shh I didn't edit this, go away.
Reaction score
122
so does calling a trigger do the same effect as Gui's run trigger?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
"Trigger - Run ..." calls the "actions" function of that trigger. Optionally checking the conditions first.
That's it already.

What exactly do you mean by "calling a trigger"? Or what you expect to happen there?
 
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