Jump to content
Sign in to follow this  
Bioz

Activating a trigger by using another trigger

Recommended Posts

Hello guys, I didn't find anything for this issue. I want that a trigger get activated only when 2-3 other triggers activates (not at the same time). How to do that?

Share this post


Link to post
Share on other sites

Ha, ninja'd by Prof, but if you want to activate trigger1 upon trigger2 and trigger3 being tripped, then in the Condition field of trigger1 type:

triggeractivated trigger2 and triggeractivated trigger3

From there you can add more etc.

Share this post


Link to post
Share on other sites

why not just synchronize the 3 triggers to that trigger? does the same thing.

I also say try playing around with gamelogic AND and OR waypoints, have a gl AND waypoint synched to all thetriggers, and in act code type whatever u need

Share this post


Link to post
Share on other sites


name all your trigger ie trig1, trig2, trig3

place then in a n array
 arraytrig = [trig1,trig2,trig3]

in the main trigger

cond

{ triggeractivated _x} count arraytrig > 1

on act

hint "At least two triggers activated" 

result would be that you need at least any two of three triggers to have activated

I think you can just create the array in the trigger condition

{ triggeractivated _x} count [trig1,trig2,trig3] > 1

Edited by F2k Sel

Share this post


Link to post
Share on other sites

name all your trigger ie trig1, trig2, trig3

place then in a n array
 arraytrig = [trig1,trig2,trig3]

in the main trigger

cond

{ triggeractivated _x} count arraytrig > 1

on act

hint "At least two triggers activated" 

result would be that you need at least any two of three triggers to have activated

I think you can just create the array in the trigger condition

{ triggeractivated _x} count [trig1,trig2,trig3] > 1

If you didn't put it in the trigger and did it the first way you said it, where would you put the array (arraytrig = [trig1,trig2,trig3])?

Share this post


Link to post
Share on other sites

You can place it in the init box of any object, unit or gamelogic. You can also place it in an init.sqf file which you create and save your self, this will run automatically every time the mission is run.

Share this post


Link to post
Share on other sites
Nope tried that about 10 mins ago.

wasnt clear enough: you need to use game logic's "AND" wp to synch all the triggers to it. You type in the code inside the wp activation box, then once all the triggers have fired, the code will fire.

You can also synch triggers to other triggers, only, both triggers have to have condition fulfilled to true, then both will activate at the same time.

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  

×