{"name":"getFriend","title":"getFriend","type":"command","url":"https://community.bistudio.com/wiki/getFriend","revid":348505,"updated":"2023-11-08T13:01:33Z","groups":["Sides"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. See also Side Relations.","syntaxes":[{"syntax":"side1 getFriend side2","params":[{"name":"side1","type":"Side","type_expr":"Side"},{"name":"side2","type":"Side","type_expr":"Side"}],"returns":{"type":"Number","type_expr":"Number","description":"decimal value between 0.0 to 1.0"},"form":"binary","left":{"text":"side1"},"right":{"text":"side2"}}],"examples":[{"code":["value = west getFriend east;"]},{"code":["_isEnemy = side _killer getFriend side _victim < 0.6;"]}],"see_also":["setFriend","BIS_fnc_sideIsFriendly","BIS_fnc_sideIsEnemy","Side Relations"]}