BIS_fnc_inAngleSector

From Bohemia Interactive Community
Revision as of 16:17, 12 June 2021 by Lou Montana (talk | contribs) (Text replacement - " +(spawn|call) +'''([a-zA-Z0-9_]+)'''[ ]* " to " $1 $2 ")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Geometry

Syntax

Syntax:
[center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector
Parameters:
center : Array - Center position
centerAngle : Number - Defines the center angle of the sector
sectorWidth: Number - Defines the width of the sector in degrees
position: Array - The position which should be checked
Return Value:
Boolean: Returns true if the position lies within sector

Examples

Example 1:
[ position player, getDir player, 30, position enemy_tank ] call BIS_fnc_inAngleSector;

Additional Information

See also:
BIS_fnc_isInFrontOf

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note