BIS_fnc_findOverwatch

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Selects a position that provides overwatch onto another position.

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

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_findSafePos

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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