BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(added formatted description) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma3 |= Game name | ||
|1.00|= Game version | |1.00|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |Checks if a position lies within an angle sector.|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [center, center angle, sector width, position ] call [[BIS_fnc_inAngleSector]]; |= Syntax | ||
|p1= center : [[Array]] - Center position |= Parameter 1 | |||
|p2= center angle : [[Number]] - Defines the center angle of the sector |= Parameter 2 | |||
|p3= sector width : [[Number]] - Defines the width of the sector in degrees |= Parameter 3 | |||
|p4= position : [[Array]] - The position which should be checked |= Parameter 4 | |||
| | | [[Boolean]]: Returns [[true]] if the position lies within sector|= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1=<code>[ [[position]] [[player]], [[getDir]] [[player]], 30, [[position]] enemy_tank ] [[call]] '''BIS_fnc_inAngleSector'''</code> |= | |||
|x1= <code></code> |= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 43: | Line 25: | ||
}} | }} | ||
Revision as of 09:22, 25 July 2017
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
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