BIS fnc inAngleSector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 10: Line 10:
[[Image: BIS fnc inAngleSector.jpg|700px]]
[[Image: BIS fnc inAngleSector.jpg|700px]]


| [center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector'''
|s1=[center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector'''
 
|p1= center : [[Array]] - Center position
|p1= center : [[Array]] - Center position
|p2= centerAngle : [[Number]] - Defines the center angle of the sector
|p2= centerAngle : [[Number]] - Defines the center angle of the sector

Revision as of 16:02, 12 June 2021

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