Function
SGroup
SGroup_IsUnderAttackFromDirection
Returns true if ALL or ANY squads are under attack from a direction within the time. see ScarUtil.scar for types of directions. you can pass in a table of directions
On this page
SGroup_IsUnderAttackFromDirection(sgroup, all, offset, time)Description
Returns true if ALL or ANY squads are under attack from a direction within the time. see ScarUtil.scar for types of directions. you can pass in a table of directions
Parameters
sgroupSGroupIDrequiredallBooleanrequiredoffsetIntegerrequiredtimeFloatrequired
Returns
BooleanSource
Declared in the game's script sources at:
scar/groups.scar