Jump to content
MRBased aka fish

Triggering a trigger after the trigger first trigger has done everything in it.

Recommended Posts

Hello gents,

I have recently started getting into arma 3 mission making and was wondering how I can make a trigger trigger another trigger (jeez what a sentence).
I am aware that you should be able to do it via variables by giving Trigger1 (the first trigger)  lets say _TriggerGo = 1 and then putting _TriggerGo = 1 into the condition for trigger2 (the second trigger).

Yet I must have done something wrong. Do have to put the variable somewhere into the mission files, maybe the init.sqf? 
I only really know Python so I am still trying to figure out how to work with .SQF files.

Thanks for the help in advance.

Share this post


Link to post
Share on other sites

Wouldn't that just start the trigger right as the first one get triggered? I want the second trigger to trigger after the first one is done if you get me.

Please correct me if im wrong though.

Share this post


Link to post
Share on other sites

Could you not just delay the second trigger with a count down (bottom of the trigger)

Share this post


Link to post
Share on other sites
8 hours ago, MRBased aka fish said:

  lets say _TriggerGo = 1 and then putting _TriggerGo = 1 into the condition for trigger2 (the second trigger).
 

 

You can't use local (_underscored) variable for that, because there is no common scope between two triggers. (So, local variables are undefined out of their scope)

You can use a global variable (no underscore) like triggerGo, defined for every scripts in your session.

 triggerGO = 1 in trigger1   and triggerGO == 1 into the condition of trigger2  (note the difference between = assigning a value,  and == for comparison)

 

But the Schatten's solution is better:  triggerActivated trigger1  (you need to name this trigger) as (part of) condition(s) of the 2nd trigger is perfect.

 

trigger1 is said  "activated", when its own condition is met.

As fawlty wrote, feel free to add an extra countdown in your 2nd trigger.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×