What it does
quest.isCompleted answers whether Completed on a quest object. It takes id.
Signature
quest.isCompleted(id)Arguments
id
Example · generated
function update(dt) { const isCompleted = quest.isCompleted('main');}quest.isCompleted is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.