ScarDoc

Start typing to search the SCAR reference.

Function
Util

Util_FallBackToGarrisonBuilding

Try to garrison a loadable building within radius that is closer to the first squad of the sgroup than enemy

On this page
Util_FallBackToGarrisonBuilding(sgroupid, radius)

Description

Returns the entity id of the building that the squad try to garrison into. Return nil if nothing is found The squad suppression would be resetted before fallling back so that they would not succumb to pinned state

Parameters

  • sgroupidSGroupIDrequired
  • radiusIntegerrequired

Returns

EntityID

Source

Declared in the game's script sources at:

scar/scarutil.scar