ScarDoc

Start typing to search the SCAR reference.

Function
EGroup

EGroup_IsUnderAttackFromDirection

Returns true if ALL or ANY entities are under attack from a direction within the time. see ScarUtil.scar for types of directions. you can pass in a table of offsets

On this page
EGroup_IsUnderAttackFromDirection(egroup, all, offset, time)

Description

Returns true if ALL or ANY entities are under attack from a direction within the time. see ScarUtil.scar for types of directions. you can pass in a table of offsets

Parameters

  • egroupEGroupIDrequired
  • allBooleanrequired
  • offsetInteger/Tablerequired
  • timeFloatrequired

Returns

Boolean

Source

Declared in the game's script sources at:

scar/groups.scar