Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description: Returns the object where the specified unit should find cover.

Be aware that the object returned might be too small to actually provide cover (e.g. rocks).

Not available in V2.0+!

Syntax

Syntax: object findCover [currPosition, hidePosition, maxDist, minDist, visPosition, ignore]
Parameters:
  • object: Object - Unit for which to seek cover
  • currPosition: Position-2 - Center position around which to search
  • hidePosition: Position-2 - Position from which the unit should hide from
  • maxDist: Number - Maximum radius to search (optional)
  • minDist: Number - Minimum distance from initial position (optional)
  • visPosition: Position-2 - Position that unit should be able to see from the cover location (optional)
  • ignore: Object - Ignore this object during the cover search (optional)
Return Value: Object

Examples

Examples:
_cover = _hider findCover [getPos _hider, getPos player,50] 

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes