{"name":"BIS_fnc_isInFrontOf","title":"BIS fnc isInFrontOf","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_isInFrontOf","revid":328436,"updated":"2022-07-13T16:00:51Z","groups":["Object Manipulation","Geometry"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Check if an object is in front of another object (in the front 180°)","syntaxes":[{"syntax":"[reference, checked, offset] call BIS_fnc_isInFrontOf","params":[{"name":"reference","type":"Object","description":"the reference object","type_expr":"Object"},{"name":"checked","type":"Object","description":"the object that has to be in front of *reference*","type_expr":"Object"},{"name":"offset","type":"Number","optional":true,"default":"0","description":"allows to check from *offset* meters in front of (positive), or behind (negative) *reference*","type_expr":"Number","text":"offset: Number - (Optional, default 0) allows to check from *offset* meters in front of (positive), or behind (negative) *reference*"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["private _isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;"]}],"see_also":["getRelDir","BIS_fnc_isInsideArea"]}