Advertisement
revenant-smg

Untitled

Jan 24th, 2022
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local allowCountdown = false
  2. function onStartCountdown()
  3.     if not allowCountdown and isStoryMode and not seenCutscene then --Block the first countdown
  4.         setProperty("camGame.visible", false)
  5.         setProperty("camHUD.visible", false)
  6.  
  7.         runTimer("lowEnd", 1, 1)
  8.         allowCountdown = true;
  9.         return Function_Stop;
  10.     end
  11.  
  12.     setProperty("camGame.visible", true)
  13.     setProperty("camHUD.visible", true)
  14.     return Function_Continue;
  15. end
  16.  
  17. function onTimerCompleted(tag, loops, loopsLeft)
  18.     if tag == "lowEnd" then
  19.         startVideo('test'); --your file's name
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement