BIS fnc inAngleSector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added image)
(Resized image)
Line 9: Line 9:


|Checks if a position lies within an angle sector.<br>
|Checks if a position lies within an angle sector.<br>
[[Image:BIS fnc inAngleSector.jpg|px50]]|
[[Image:BIS fnc inAngleSector.jpg|700px]]|
|= Description
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 10:58, 25 July 2017


Hover & click on the images for description

Description

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

Syntax

Syntax:
Syntax needed
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:
[center, center angle, sector width, position ] call BIS_fnc_inAngleSector;

Examples

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

Additional Information

See also:
Boolean: Returns true if the position lies within sector

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