IdaJS
    Preparing search index...

    Variable doSceneStore

    doSceneStore: (callback: (store: Record<string, any>) => void) => () => void

    [COROUTINE COMMAND] Use in the coroutines only; Must be called with yield!

    Facilitates changing IdaJS scene store variables from within a coroutine.

    Using doSceneStore for side effects ensures that the changes will not be repeated each time the coroutine is resumed from a saved game, but only once when the coroutine reaches this point.

    Type Declaration

      • (callback: (store: Record<string, any>) => void): () => void
      • Parameters

        • callback: (store: Record<string, any>) => void

          The callback function, that receives the scene store as parameter

        Returns () => void

    // Coroutine function (must have * after function keyword)
    function* myCoroutine() {
    // Some other coroutine commands...

    // Change the scene store variable to true, from within the coroutine
    yield doSceneStore((store) => {
    store.doorIsOpen = true;
    });
    }