ScarDoc

Start typing to search the SCAR reference.

Function
EGroup

EGroup_SetAvgHealth

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

On this page
EGroup_SetAvgHealth(egroup, healthPercent)

Description

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

Parameters

  • egroupEGroupIDrequired
  • healthPercentRealrequired

Returns

Real

Source

Declared in the game's script sources at:

scar/groups.scar