Description
Check if an object is in front of another object (in the front 180°)
Syntax
[reference, checked, offset] call BIS_fnc_isInFrontOf
Parameters:
reference: Object - the reference objectchecked: Object - the object that has to be in front of referenceoffset: Number - (Optional, default 0) allows to check from offset meters in front of (positive), or behind (negative) reference
Returns: Boolean
Examples
Example 1
private _isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;