ScarDoc

Start typing to search the SCAR reference.

Function
Prox

Prox_AreSquadMembersNearMarker

Returns true if ANY or ALL squad members (i.e. individual guys, not squads as a whole) from a group are in range of a given position, marker, or territory sector. DO NOT USE THIS FUNCTION UNLESS YOU ABSOLUTELY HAVE TO!!

On this page
Prox_AreSquadMembersNearMarker(sgroup, position, all, range)

Description

You MUST specify a range if you are using a position rather than a marker. Markers with proximity type rectangle will use circular proximity check if custom range is supplied

Parameters

  • sgroupSGroupIDrequired
  • positionMarkerID/Position/SectorIDrequired
  • allBooleanrequired
  • rangeRealoptional

Returns

Boolean

Source

Declared in the game's script sources at:

scar/proximity.scar