Jump to content
Sign in to follow this  
vonsteimel

Using a Trigger to Change the Conditions of another trigger

Recommended Posts

I've searched to no avail.

Is it possible to use one trigger to change the conditions of another trigger? Some kind of "Trigger name" Setcondition "script x" ? It would be excellent if so.... I have searched the Arma2 scripting commands database and couldn't find anything. Any responses will be appreciated.

Thanks,

VS

Share this post


Link to post
Share on other sites

Place two triggers on your map. Set for Anybody Present or whatever.

Name the first one Trig1 (not really necessary).... Name the second trigger Trig2.

In the first triggers (Trig1) On Act put this code....

Trig2 [url="http://community.bistudio.com/wiki/setTriggerStatements"][u]setTriggerStatements[/u][/url] ["this", "hint 'Hint from Trig2'", ""];

Enter the trigger Trig1.... and Trig2's On Act statement will be set to...

Hint "Hint from Trig2";

...and you will get this hint when you enter Trig2. Hope that helps you.

Share this post


Link to post
Share on other sites

Ah, there it is!

Thank you. setTriggerStatements is what I was looking for.

VS

Share this post


Link to post
Share on other sites

Actually... just realised the example I posted changes the onAct and not the condition...lol! But...anyway it still is the right command to change the condition.

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  

×