Advertisement
UpDownLeftRight

FNF: Psych engine dialogue script.lua

Nov 30th, 2021
4,159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local allowCountdown = false
  2. function onStartCountdown()
  3. -- Block the first countdown and start a timer of 0.8 seconds to play the dialogue
  4. if not allowCountdown and isStoryMode and not seenCutscene then
  5. setProperty('inCutscene', true);
  6. runTimer('startDialogue', 0.8);
  7. allowCountdown = true;
  8. return Function_Stop;
  9. end
  10. return Function_Continue;
  11. end
  12.  
  13. function onTimerCompleted(tag, loops, loopsLeft)
  14. if tag == 'startDialogue' then -- Timer completed, play dialogue
  15. startDialogue('DialogueFileName', 'BgMusicName');
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement