{"name":"BIS_fnc_sideIsEnemy","operator":null,"title":"BIS fnc sideIsEnemy","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sideIsEnemy","revid":349213,"updated":"2023-11-08T14:50:48Z","groups":["Sides"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Determines if side B is enemy to side A the way the game engine does it. The relationship table can be found here:  Side Relations.","syntaxes":[{"syntax":"[sideA, sideB] call BIS_fnc_sideIsEnemy","since":null,"effect":null,"exec":null,"params":[{"name":"sideA","type":"Side","optional":false,"default":null,"description":null,"types":["Side"],"since":null,"text":"sideA: Side"},{"name":"sideB","type":"Side","optional":false,"default":null,"description":null,"types":["Side"],"since":null,"text":"sideB: Side"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if side B is enemy to side A.","text":"Boolean - true if side B is enemy to side A."}}],"examples":[{"text":"```sqf\nprivate _isEnemy = [west, east] call BIS_fnc_sideIsEnemy; //Checks if EAST is enemy to WEST.\n```","code":["private _isEnemy = [west, east] call BIS_fnc_sideIsEnemy; //Checks if EAST is enemy to WEST."]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getFriend","setFriend","BIS_fnc_sideIsFriendly","Side Relations"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Sides","Functions","Introduced with Arma 3 version 1.56"],"docblock":null,"filled_from_docblock":[]}