Arma 3 Scripting

BIS_fnc_findOverwatch

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Selects a position that provides overwatch onto another position.

Syntax

[target, maxDistance, minDistance, minHeightAbove, searchCentre] call BIS_fnc_findOverwatch

Parameters:

Returns: Position - target position if no result were found

Examples

Example 1

[getPosATL enemyTank, 300, 75, 20, getPosATL player] call BIS_fnc_findOverwatch;

See also

BIS_fnc_findSafePos

Community notes

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).

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.