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
sgroupidSGroupIDrequiredradiusIntegerrequired
Returns
EntityIDSource
Declared in the game's script sources at:
scar/scarutil.scar