Description
Checks if a position lies within an angle sector.
Syntax
[center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector
Parameters:
center: Array - center positioncenterAngle: Number - defines the center angle of the sectorsectorWidth: Number - defines the width of the sector in degreesposition: Array - the position which should be checked
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;