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
objTableLuaTablerequiredbarIndexIntegerrequiredgroupSquad/SGroup/Entity/EGrouprequirednameString/LocIDrequiredonlyWhenDamagedBooleanoptionalmax_healthRealoptionalweigh_equallyStringoptional
Returns
ElementIDsSource
Declared in the game's script sources at:
scar/objectives.scar