ScarDoc

Start typing to search the SCAR reference.

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

  • sgroupSGroupIDrequired
  • allBooleanrequired
  • offsetIntegerrequired
  • timeFloatrequired

Returns

Boolean

Source

Declared in the game's script sources at:

scar/groups.scar