Arma 3 Scripting

BIS_fnc_isInFrontOf

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · also in Geometry · Markdown · JSON · 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