ScarDoc

Start typing to search the SCAR reference.

Function
Objective

Objective_SetProgressBar

Show a progress bar for this objective with the given value (which should be a percentage from 0.0 (empty) to 1.0 (full)). This bar can be removed with Objective_RemoveProgressBar or by completing or failing the mission.

On this page
Objective_SetProgressBar(objTable, value, flashing, barIndex, text)

Description

If you want to use one of the \"global\" progress bars (if your project supports them), supply the relevant barIndex value and text string to show alongside it.

Parameters

  • objTableLuaTablerequired
  • valueRealrequired
  • flashingBooleanoptional
  • barIndexIntegeroptional
  • textString/LocIDoptional

Returns

Unknown

Source

Declared in the game's script sources at:

scar/core_objectives.scar