Function
SGroup
SGroup_SetInvulnerable
Enable/Disable invulnerablity for an entire SGroup. Use true and false for simple on/off, or use a number between 0.0 and 1.0 for more precise control on how much damage a squad can take before it takes no more.
On this page
SGroup_SetInvulnerable(sgroup, enabled, reset_time)Description
The optional reset_time is used to automatically remove invulnerability after a set time. If invulnerable, both health damage is disabled.
Parameters
sgroupSGroupIDrequiredenabledBoolean/Realrequiredreset_timeFloatoptional
Returns
VoidSource
Declared in the game's script sources at:
scar/groups.scar