{"name":"setEffectCondition","operator":null,"title":"setEffectCondition","type":"command","url":"https://community.bistudio.com/wiki/setEffectCondition","revid":377586,"updated":"2026-01-02T06:56:46Z","groups":["Triggers"],"status":"ok","replaced_by":[],"games":[{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.\n\n- If the result is a boolean and true, the effect is launched.\n- If the result is an object, the effect is launched if the result is the player or the player vehicle.\n- If the result is an array, the effect is launched if the result contains the player or the player vehicle.","syntaxes":[{"syntax":"trigger setEffectCondition statement","since":null,"effect":null,"exec":null,"params":[{"name":"trigger","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"trigger: Object"},{"name":"statement","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"statement: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"trigger","types":["Object"]},"right":{"text":"statement","types":["String"]}},{"syntax":"waypoint setEffectCondition statement","since":null,"effect":null,"exec":null,"params":[{"name":"waypoint","type":"Waypoint","optional":false,"default":null,"description":"Waypoint","types":["Waypoint"],"since":null,"text":"waypoint: Waypoint - Waypoint"},{"name":"statement","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"statement: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"waypoint","types":["Waypoint"]},"right":{"text":"statement","types":["String"]}}],"examples":[{"text":"```sqf\n_triggerObj setEffectCondition \"thisList\";\n```","code":["_triggerObj setEffectCondition \"thisList\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createTrigger"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Triggers","Introduced with Operation Flashpoint: Elite version 1.00","Operation Flashpoint: Elite: New Scripting Commands","Operation Flashpoint: Elite: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}