BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Geometry |GROUP1= | |gr1 = Geometry |GROUP1= | ||
|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|700px]] | [[Image: BIS fnc inAngleSector.jpg|700px]] | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| [center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector''' |SYNTAX= | | [center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector''' |SYNTAX= | ||
Line 21: | Line 18: | ||
| [[Boolean]]: Returns [[true]] if the position lies within sector|RETURNVALUE= | | [[Boolean]]: Returns [[true]] if the position lies within sector|RETURNVALUE= | ||
|x1=<code>[ [[position]] [[player]], [[getDir]] [[player]], 30, [[position]] enemy_tank ] [[call]] [[BIS_fnc_inAngleSector]];</code> |= | |x1=<code>[ [[position]] [[player]], [[getDir]] [[player]], 30, [[position]] enemy_tank ] [[call]] [[BIS_fnc_inAngleSector]];</code> |= | ||
| [[BIS_fnc_isInFrontOf]] |SEEALSO= | | [[BIS_fnc_isInFrontOf]] |SEEALSO= | ||
}} | }} |
Revision as of 23:05, 16 January 2021
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
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