Arma 3 Scripting

Command in Broken Commands

findCover

Also available as Markdown and JSON, or read the original wiki page.

Warning

This command is listed as broken on the wiki.

Description

Returns the object around where the unit finds cover. The minDist, visibilityPosition and ignoreObject parameters are optional.

Important

Not implemented in Arma 2 and later titles (always returns objNull).

Syntax

object findCover [position, hidePosition, maxDist, minDist, visibilityPosition, ignoreObject]

Parameters:

Returns: Object - always objNull

Examples

Example 1

unit1 findCover [ASLToATL aimPos unit2, 30];

See also

getHideFrom · setHideBehind · isHidden

Community notes