forked from mirror/openmw-tes3mp
Send ID_WORLD_VIDEO_PLAY from ingame scripts
This commit is contained in:
parent
b6111d16cc
commit
be73265848
1 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,12 @@ namespace MWScript
|
|||
bool allowSkipping = runtime[0].mInteger != 0;
|
||||
runtime.pop();
|
||||
|
||||
// Added by tes3mp
|
||||
mwmp::WorldEvent *event = mwmp::Main::get().getNetworking()->createWorldEvent();
|
||||
event->video = name;
|
||||
event->allowSkipping = allowSkipping;
|
||||
mwmp::Main::get().getNetworking()->GetWorldPacket(ID_WORLD_VIDEO_PLAY)->Send(event);
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->playVideo (name, allowSkipping);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue