void MystScriptParser::o_triggerMovie(uint16 op, uint16 var, uint16 argc, uint16 *argv) { debugC(kDebugScript, "Opcode %d: Trigger Type 6 Resource Movie..", op); // TODO: If movie has sound, pause background music int16 direction = 1; if (argc == 1) direction = argv[0]; debugC(kDebugScript, "\tDirection: %d", direction); // Trigger resource 6 movie overriding play direction MystResourceType6 *resource = static_cast<MystResourceType6 *>(_invokingResource); resource->setDirection(direction); resource->playMovie(); // TODO: If movie has sound, resume background music }