ScarDoc

Start typing to search the SCAR reference.

Function
EGroup

EGroup_GetAvgHealth

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

On this page
EGroup_GetAvgHealth(egroup)

Description

This uses the \"proper\" measure of health for panel buildings, so should accurately reflect what the user sees.

Parameters

  • egroupEGroupIDrequired

Returns

Real

Source

Declared in the game's script sources at:

scar/groups.scar