BIS fnc findOverwatch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
Line 34: Line 34:
<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on October 19, 2018 - 21:40 (UTC)</dd>
<dd class="notedate">Posted on October 19, 2018 - 21:40 (UTC)</dd>
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>

Revision as of 14:26, 5 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Positions

Syntax

Syntax:
Syntax needed
Parameters:
target: Position3D - not an object
maxDistance: Number - (Optional, default 500) maximum distance from target in meters
minDistance: Number - (Optional, default 100) minimum distance from target in meters
minHeightAbove: Number - (Optional, default 50) minimum height in relation to target in meters
searchCentre: Position3D - (Optional, default target) position to start looking from, if different from target pos
Return Value:
Return value needed

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



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).
Posted on April 15, 2020 - 13:53 (UTC)
Tankbuster
Further note that when this function fails to find an overwatch position and returns the target, the x and y components will be exactly the same, but the z might not be.