BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 18: | Line 18: | ||
|r1= [[Boolean]]: Returns [[true]] if the position lies within sector | |r1= [[Boolean]]: Returns [[true]] if the position lies within sector | ||
|x1=<code>[ position | |x1=<code>[ position player, [[getDir]] [[player]], 30, [[position]] enemy_tank ] [[call]] [[BIS_fnc_inAngleSector]];</code> | ||
|seealso= [[BIS_fnc_isInFrontOf]] | |seealso= [[BIS_fnc_isInFrontOf]] | ||
}} | }} |
Revision as of 21:36, 12 July 2022
Description
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