View Full Version : Using a Trigger to Change the Conditions of another trigger
vonsteimel
Mar 26 2012, 22:11
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
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 setTriggerStatements (http://community.bistudio.com/wiki/setTriggerStatements) ["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.
vonsteimel
Mar 26 2012, 23:28
Ah, there it is!
Thank you. setTriggerStatements is what I was looking for.
VS
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.