IdaJS
    Preparing search index...

    Variable doMove

    doMove: (
        opcode: MoveOpcode,
        ...args: (number | string)[],
    ) => (coroutine: unknown) => void

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

    This is the main coroutine function in IdaJS. Use it to execute any LBA2 move script command in an actor coroutine.

    Type Declaration

      • (opcode: MoveOpcode, ...args: (number | string)[]): (coroutine: unknown) => void
      • Parameters

        Returns (coroutine: unknown) => void

    // Coroutine function (must have * after function keyword)
    function* zoeIsExitingTheHouse() {
    // Play idle animation
    yield doMove(ida.Move.TM_ANIM, 0);
    // ... some other coroutine commands...
    }

    MoveOpcodes for the possible opcodes and their arguments.