BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
(Resized image) |
Killzone Kid (talk | contribs) (format) |
||
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|700px]] | [[Image:BIS fnc inAngleSector.jpg|700px]] | ||
|= Description | |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [center, | | [center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector''' |= Syntax | ||
|p1= center : [[Array]] - Center position |= Parameter 1 | |p1= center : [[Array]] - Center position |= Parameter 1 | ||
|p2= | |p2= centerAngle : [[Number]] - Defines the center angle of the sector |= Parameter 2 | ||
|p3= | |p3= sectorWidth: [[Number]] - Defines the width of the sector in degrees |= Parameter 3 | ||
|p4= position : [[Array]] - The position which should be checked |= Parameter 4 | |p4= position: [[Array]] - The position which should be checked |= Parameter 4 | ||
| [[Boolean]]: Returns [[true]] if the position lies within sector|= Return value | | [[Boolean]]: Returns [[true]] if the position lies within sector|= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1=<code>[ [[position]] [[player]], [[getDir]] [[player]], 30, [[position]] enemy_tank ] [[call]] | |x1=<code>[ [[position]] [[player]], [[getDir]] [[player]], 30, [[position]] enemy_tank ] [[call]] [[BIS_fnc_inAngleSector]];</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 11:03, 25 July 2017
Description
- Description:
- Checks if a position lies within an angle sector.
- Execution:
- call
- Groups:
- Uncategorised
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:
- 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