ScarDoc

Start typing to search the SCAR reference.

Function
Objective

Objective_AddHealthBar

Adds a Healthbar tied to a squad or entity at a location. Will update the health bar as the unit's health fluctuates. Can be removed with Objective_RemoveHealthBar or completing/failing the objective

On this page
Objective_AddHealthBar(objTable, barIndex, group, name, onlyWhenDamaged, max_health, weigh_equally)

Description

Adds a Healthbar tied to a squad or entity at a location. Will update the health bar as the unit's health fluctuates. Can be removed with Objective_RemoveHealthBar or completing/failing the objective

Parameters

  • objTableLuaTablerequired
  • barIndexIntegerrequired
  • groupSquad/SGroup/Entity/EGrouprequired
  • nameString/LocIDrequired
  • onlyWhenDamagedBooleanoptional
  • max_healthRealoptional
  • weigh_equallyStringoptional

Returns

ElementIDs

Source

Declared in the game's script sources at:

scar/objectives.scar