Arma 3 Scripting

Function in Object Manipulation, Geometry

BIS_fnc_isInFrontOf

Also available as Markdown and JSON, or read the original wiki page.

Description

Check if an object is in front of another object (in the front 180°)

Syntax

[reference, checked, offset] call BIS_fnc_isInFrontOf

Parameters:

Returns: Boolean

Examples

Example 1

private _isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;

See also

getRelDir · BIS_fnc_isInsideArea