quest.updateObjective

Section: Quests

What it does

quest.updateObjective takes questId, objId and progress. progress is optional.

Signature

quest.updateObjective(questId, objId, progress?)

Arguments

  • questId
  • objId
  • progressoptional

Example · generated

function start() {  quest.updateObjective('main', 'main');}

quest.updateObjective is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

16 members in quest