ScarDoc

Start typing to search the SCAR reference.

Function
Prox

Prox_ArePlayersNearMarker

Returns true if ANY or ALL of a player's squads are in range of a given position, marker, or territory sector. THIS FUNCTION IS VERY SLOW. DO NOT USE THIS UNLESS ABSOLUTELY NECESSARY.

On this page
Prox_ArePlayersNearMarker(player, position, all, range, filterlist, filtertype, ignore_camouflage)

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

  • playerPlayerIDrequired
  • positionMarkerID/Position/SectorIDrequired
  • allBooleanrequired
  • rangeRealoptional
  • filterlistSBP/Tableoptional
  • filtertypeIntegeroptional
  • ignore_camouflageBooleanoptional

Returns

Boolean

Source

Declared in the game's script sources at:

scar/proximity.scar