BIS fnc findOverwatch: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| [target, maxDistance, minDistance, minHeightAbove, searchCentre] call [[BIS_fnc_findOverwatch]] |SYNTAX= | | [target, maxDistance, minDistance, minHeightAbove, searchCentre] call [[BIS_fnc_findOverwatch]] |SYNTAX= | ||
|p1= target: [[Position]] - '''not''' an object |= | |p1= target: [[Position]] - '''not''' an object |PARAMETER1= | ||
|p2= maxDistance: [[Number]] - (Optional, default 500) maximum distance from target in meters |= | |p2= maxDistance: [[Number]] - (Optional, default 500) maximum distance from target in meters |PARAMETER2= | ||
|p3= minDistance: [[Position]] - (Optional, default 100) minimum distance from target in meters |= | |p3= minDistance: [[Position]] - (Optional, default 100) minimum distance from target in meters |PARAMETER3= | ||
|p4= minHeightAbove: [[Position]] - (Optional, default 50) minimum height in relation to target in meters |= | |p4= minHeightAbove: [[Position]] - (Optional, default 50) minimum height in relation to target in meters |PARAMETER4= | ||
|p5= searchCentre: [[Position]] - (Optional, default ''target'') position to start looking from, if different from target pos |= | |p5= searchCentre: [[Position]] - (Optional, default ''target'') position to start looking from, if different from target pos |PARAMETER5= | ||
| [[Position]] - ''target'' position if no result were found |RETURNVALUE= | | [[Position]] - ''target'' position if no result were found |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki>[</nowiki>[[getPosATL]] enemyTank, 300, 75, 20, [[getPosATL]] [[player]]] [[call]] [[BIS_fnc_findOverwatch]];</code> |= | |x1= <code><nowiki>[</nowiki>[[getPosATL]] enemyTank, 300, 75, 20, [[getPosATL]] [[player]]] [[call]] [[BIS_fnc_findOverwatch]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:30, 7 April 2019
Description
- Description:
- Selects a position that provides overwatch onto another position.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [target, maxDistance, minDistance, minHeightAbove, searchCentre] call BIS_fnc_findOverwatch
- Parameters:
- target: Position - not an object
- maxDistance: Number - (Optional, default 500) maximum distance from target in meters
- minDistance: Position - (Optional, default 100) minimum distance from target in meters
- minHeightAbove: Position - (Optional, default 50) minimum height in relation to target in meters
- searchCentre: Position - (Optional, default target) position to start looking from, if different from target pos
- Return Value:
- Position - target position if no result were found
Examples
- Example 1:
[getPosATL enemyTank, 300, 75, 20, getPosATL player] call BIS_fnc_findOverwatch;
Additional Information
- See also:
- BIS_fnc_findSafePos
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
Notes
Bottom Section
- Posted on October 19, 2018 - 21:40 (UTC)
- Tankbuster
- Note that this function returns a 2D position, that is, an array containing an x and a y value, but no z (no altitude).