{"name":"BIS_fnc_tridentExecute","operator":null,"title":"BIS fnc tridentExecute","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_tridentExecute","revid":348481,"updated":"2023-11-08T13:00:28Z","groups":["Sides"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Execute a code based on Trident relationship.","syntaxes":[{"syntax":"[side_1, side_2, codeFriendly, codeEnemy] call BIS_fnc_tridentExecute","since":null,"effect":null,"exec":null,"params":[{"name":"side_1","type":"Side","optional":false,"default":null,"description":null,"types":["Side"],"since":null,"text":"side_1: Side"},{"name":"side_2","type":"Side","optional":false,"default":null,"description":null,"types":["Side"],"since":null,"text":"side_2: Side"},{"name":"codeFriendly","type":"Code","optional":false,"default":null,"description":"code executed when sides are friendly. Arguments passed to the code are:\n- 0: Side - Side with higher score (when the score is even, side from param 0 is used)\n- 1: Side - Side with lower score (when the score is even, side from param 1 is used)\n- 2: Boolean - true when the sides are allied","types":["Code"],"since":null,"text":"codeFriendly: Code - code executed when sides are friendly. Arguments passed to the code are:\n- 0: Side - Side with higher score (when the score is even, side from param 0 is used)\n- 1: Side - Side with lower score (when the score is even, side from param 1 is used)\n- 2: Boolean - true when the sides are allied"},{"name":"codeEnemy","type":"Code","optional":false,"default":null,"description":"code executed when sides are enemy","types":["Code"],"since":null,"text":"codeEnemy: Code - code executed when sides are enemy"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when the sides are allied","text":"Boolean - true when the sides are allied"}}],"examples":[{"text":"```sqf\n[west, east, { params [\"_higherScore\", \"_lowerScore\", \"_areAllied\"] }] call BIS_fnc_tridentExecute;\n```","code":["[west, east, { params [\"_higherScore\", \"_lowerScore\", \"_areAllied\"] }] call BIS_fnc_tridentExecute;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_tridentGetRelationship","BIS_fnc_tridentHandleDamage","BIS_fnc_tridentSetRelationship"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Sides","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}