Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local allowCountdown = false
- function onStartCountdown()
- -- Block the first countdown and start a timer of 0.8 seconds to play the dialogue
- if not allowCountdown and isStoryMode and not seenCutscene then
- setProperty('inCutscene', true);
- runTimer('startDialogue', 0.8);
- allowCountdown = true;
- return Function_Stop;
- end
- return Function_Continue;
- end
- function onTimerCompleted(tag, loops, loopsLeft)
- if tag == 'startDialogue' then -- Timer completed, play dialogue
- startDialogue('DialogueFileName', 'BgMusicName');
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement