Cinematic path demo map

Patch By: Vladislav
Refs #3301 #3814

This was SVN commit r19319.
This commit is contained in:
elexis 2017-03-21 00:33:44 +00:00
parent b675a0154a
commit a3ea45509b
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,22 @@
Trigger.prototype.CounterMessage = function(data)
{
var cmpGUIInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface);
cmpGUIInterface.PushNotification({
"players": [1, 2],
"message": markForTranslation("Cutscene starts after 5 seconds"),
translateMessage: true
});
};
Trigger.prototype.StartCutscene = function(data)
{
var cmpCinemaManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_CinemaManager);
if (!cmpCinemaManager)
return;
cmpCinemaManager.AddCinemaPathToQueue("test");
cmpCinemaManager.Play();
};
var cmpTrigger = Engine.QueryInterface(SYSTEM_ENTITY, IID_Trigger);
cmpTrigger.DoAfterDelay(1000, "CounterMessage", {});
cmpTrigger.DoAfterDelay(6000, "StartCutscene", {});

BIN
binaries/data/mods/public/maps/scenarios/Cinema_Demo.pmp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
binaries/data/mods/public/maps/scenarios/Cinema_Demo.xml (Stored with Git LFS) Normal file

Binary file not shown.