Function
Util
Util_GetPositionAwayFromPlayer
Returns a random position within an area that is not near a player
On this page
Util_GetPositionAwayFromPlayer(pos, player, searchRadius, distance)Description
Useful for dropping artillery NEAR a player, but not on him, for example. searchRadius is the area to look for the location in. Distance is how far from the player's units the position must be.
Parameters
posMarkerID/Pos/EGroupID/SGroupIDrequiredplayerPlayerIDrequiredsearchRadiusIntegeroptionaldistanceIntegeroptional
Returns
PositionSource
Declared in the game's script sources at:
scar/scarutil.scar