ScarDoc

Start typing to search the SCAR reference.

Function
SGroup

SGroup_SetAvgHealth

Sets the health of each squad in a squad group to a given percent [0.0, 1.0].

On this page
SGroup_SetAvgHealth(sgroup, healthpercent)

Description

Sets the health of each squad in a squad group to a given percent [0.0, 1.0].

Parameters

  • sgroupSGroupIDrequired
  • healthpercentRealrequired

Returns

Real

Source

Declared in the game's script sources at:

scar/groups.scar