An alternative function in Arma 3 might be BIS_fnc_findSafePos.
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:
object: Objectposition: PositionhidePosition: PositionATL - getHideFrom-like position from which the unit should hidemaxDist: NumberminDist: Number - (Optional)visibilityPosition: Position - (Optional) used to select cover that unit can see in that direction fromignoreObject: Object - (Optional) ignore this object in visibility check
Returns: Object - always objNull
Examples
Example 1
unit1 findCover [ASLToATL aimPos unit2, 30];
See also
getHideFrom · setHideBehind · isHidden