Jump to content
Sign in to follow this  
Pundaria

When three triggers fire...

Recommended Posts

I want to make a trigger that triggers when three triggers are true, how to?

They are named A, B, C respectively

Share this post


Link to post
Share on other sites

there is this command, but ive never used it:

triggerActivated

other way is to use variables:

add to any unit or init.sqf:

trig1 = false; trig2 = false; trig3 = false;

add in trigger1

on act:

trig1 = true;

on deact: trig1 = false; (this is only needed if its a repeating trigger)

repeat for trigger 2 and 3 with trig2,trig3 in on act and on deact.

now for your 4th trigger(the one only activated after all 3 is true)

condition:

trig1 AND trig2 AND trig3

on act: hint "all 3 other triggers have been activated"

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
Sign in to follow this  

×