ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_GetClosestMarker

Returns the closest MarkerID to the entity/marker/pos/egroup/sgroup/squad from the table of markers provided

On this page
Util_GetClosestMarker(var, markers)

Description

Returns the closest MarkerID to the entity/marker/pos/egroup/sgroup/squad from the table of markers provided

Parameters

  • varVariablerequired
  • markersTablerequired

Returns

MarkerID

Source

Declared in the game's script sources at:

scar/scarutil.scar