Difference between revisions of "findCover"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
Line 47: Line 47:
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 10:26, 6 April 2020

Introduced with Armed Assault version 1.001.00
Hover & click on the images for descriptions


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

Not implemented in Arma 2 or Arma 3, always returns objNull


object findCover [position, hidePosition, maxDist, minDist, visibilityPosition, ignoreObject]
object: Object
[position, hidePosition, maxDist, minDist, visibilityPosition, ignoreObject]: Array
position: Array - format Position
hidePosition: Array - format getHideFrom. Position of that which the unit should hide from
maxDist: Number
minDist: Number (Optional)
visibilityPosition: Array - format Position (Optional) used to select cover that unit can see in that direction from
ignoreObject: Object (Optional) Ignore this object in visibility check
Return Value:
Object - always objNull


Example 1:

Additional Information

See also:


Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.


Posted on July 4, 2015 - 22:01 (UTC)
An alternative function in Arma 3 might be BIS_fnc_findSafePos

Bottom Section