{"name":"BIS_fnc_isInFrontOf","operator":null,"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","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Check if an object is in front of another object (in the front 180°)","syntaxes":[{"syntax":"[reference, checked, offset] call BIS_fnc_isInFrontOf","since":null,"effect":null,"exec":null,"params":[{"name":"reference","type":"Object","optional":false,"default":null,"description":"the reference object","types":["Object"],"since":null,"text":"reference: Object - the reference object"},{"name":"checked","type":"Object","optional":false,"default":null,"description":"the object that has to be in front of *reference*","types":["Object"],"since":null,"text":"checked: Object - the object that has to be in front of *reference*"},{"name":"offset","type":"Number","optional":true,"default":"0","description":"allows to check from *offset* meters in front of (positive), or behind (negative) *reference*","types":["Number"],"since":null,"text":"offset: Number - (Optional, default 0) allows to check from *offset* meters in front of (positive), or behind (negative) *reference*"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\nprivate _isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;\n```","code":["private _isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getRelDir","BIS_fnc_isInsideArea"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Geometry","Function Group: Object Manipulation","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}