Fix mission accomplished notifications and video playback

This commit is contained in:
Oliver Brakmann
2014-09-06 11:06:36 +02:00
parent 05f2a06204
commit 001ea9a30d
3 changed files with 18 additions and 10 deletions

View File

@@ -42,12 +42,14 @@ WorldLoaded = function()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Media.PlayMovieFullscreen("flag.vqa")
Trigger.AfterDelay(Utils.Seconds(1), function()
Media.PlayMovieFullscreen("flag.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(Utils.Seconds(1), function()
Media.PlaySpeechNotification(player, "Lose")
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)