Advertisement
Mudbill

Dialogue Script (Amnesia)

Apr 19th, 2013
1,074
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. void OnStart()
  2. {
  3. AddEntityCollideCallback("Player", "AreaCollideVoice", "Dialogue", true, 1);
  4. }
  5.  
  6. void Dialogue(string &in asParent, string &in asChild, int alState)
  7. {
  8. AddEffectVoice("dialogue1_1", "", "Dialogue", "Talk1_1", true, "AreaVoice", 5, 10);
  9. AddEffectVoice("dialogue1_2", "", "Dialogue", "Talk1_2", true, "AreaVoice", 5, 10);
  10. AddEffectVoice("dialogue1_3", "", "Dialogue", "Talk1_3", true, "AreaVoice", 5, 10);
  11. AddEffectVoice("dialogue1_4", "", "Dialogue", "Talk1_4", true, "AreaVoice", 5, 10);
  12.  
  13. SetEffectVoiceOverCallback("VoiceDone");
  14. }
  15.  
  16. void VoiceDone()
  17. {
  18. SetPropHealth("mansion_2", 0);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement