Arma 3 Scripting

BIS_fnc_inAngleSector

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Checks if a position lies within an angle sector.

Syntax

[center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector

Parameters:

Returns: Boolean - true if the position lies within the defined sector

Examples

Example 1

[getPosWorld player, getDir player, 30, getPosWorld enemy_tank] call BIS_fnc_inAngleSector;

See also

BIS_fnc_isInFrontOf