ScarDoc

Start typing to search the SCAR reference.

Function
SGroup

SGroup_GetAvgHealth

Returns the average health ratio of all units in a squad group.

On this page
SGroup_GetAvgHealth(sgroup)

Description

It now uses the same health measure that's used by the UI, so it does take into account fallen members of a squad

Parameters

  • sgroupSGroupIDrequired

Returns

Real

Source

Declared in the game's script sources at:

scar/groups.scar