What it does
quest.onChange listens for Change on quest: the function you hand it is called back each time. It takes cb.
Signature
quest.onChange(cb)Arguments
cb
Example · generated
function start() { quest.onChange(() => {});}quest.onChange 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.