What it does
quest.completeObjective takes questId and objId.
Signature
quest.completeObjective(questId, objId)Arguments
questIdobjId
Example · generated
function start() { quest.completeObjective('main', 'main');}quest.completeObjective 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.