ScarDoc

Start typing to search the SCAR reference.

Function
Prox

Prox_EGroupEGroup

Returns the distance between two entity groups. use checktype PROX_SHORTEST, PROX_LONGEST, or PROX_CENTER.

On this page
Prox_EGroupEGroup(egroup1, egroup2, checktype)

Description

If check is PROX_SHORTEST this will return the shortest distance between the two groups. If check is PROX_LONGEST this will return the longest distance between the two groups. If check is PROX_CENTER this will return the distance between the two groups centers.

Parameters

  • egroup1EGroupIDrequired
  • egroup2EGroupIDrequired
  • checktypeProxTyperequired

Returns

Real

Source

Declared in the game's script sources at:

scar/proximity.scar