ScarDoc

Start typing to search the SCAR reference.

Function
World

World_GetClosest

Returns the closest object from the table of marker/pos/egroup/sgroup to the closest marker/pos/egroup/sgroup specified

On this page
World_GetClosest(var, items)

Description

The table may mix together objects of different types.

Parameters

  • varVariablerequired
  • itemsLuaTable/SGroup/EGrouprequired

Returns

Variable

Source

Declared in the game's script sources at:

scar/scarutil.scar