BIS_fnc_inAngleSector

From Bohemia Interactive Community
Revision as of 09:22, 25 July 2017 by R3vo (talk | contribs) (added formatted description)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
Checks if a position lies within an angle sector.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[center, center angle, sector width, position ] call BIS_fnc_inAngleSector;
Parameters:
center : Array - Center position
center angle : Number - Defines the center angle of the sector
sector width : 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:
See also needed

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