Advertisement
Daemonion

FINAL space restrictor

May 13th, 2012
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. ;** same basic script for every space restrictor
  2.  
  3. [logic]
  4. active = sr_idle
  5.  
  6. [sr_idle]
  7. on_actor_inside = sr_sound_act@underground %+interior_whitenoise_playing%
  8. ;** when actor goes inside this space restrictor, play the sound and enable the info portion "interior whitenoise playing"
  9.  
  10. [sr_sound_act@underground]
  11. ;** play the interior ambient sound
  12. theme = sr_indoor_cement
  13. delay = 0
  14. max_delay = 0
  15. stereo = false
  16. ;** when actor goes outside, find out if it is DAY or NIGHT
  17. ;** disable the info portion
  18. on_actor_outside = {=is_day} sr_sound_act@outdoor_day %-interior_whitenoise_playing%, {!is_day} sr_sound_act@outdoor_night %-interior_whitenoise_playing%
  19.  
  20. [sr_sound_act@outdoor_day]
  21. ;** play the outdoor, daytime ambient sound
  22. theme = outdoor_white_noise_day
  23. delay = 0
  24. delay_max = 0
  25. max_delay = 0
  26. stereo = false
  27. on_actor_inside = sr_idle %+interior_whitenoise_playing%
  28. ;** enable the infoportion when the actor goes outside
  29. on_info = {!is_day} sr_sound_act@outdoor_night
  30. ;** when it becomes night, change to the outdoor ambient nighttime sound
  31. on_info2 = {+interior_whitenoise_playing} sr_idle
  32. ;** if the infoportion is enabled, stop playing the outdoor ambient noise
  33. ;** by going back to sr_idle, the script will run again once the player enters this same space restrictor
  34.  
  35. [sr_sound_act@outdoor_night]
  36. theme = outdoor_white_noise_night
  37. delay = 0
  38. delay_max = 0
  39. stereo = false
  40. on_actor_inside = sr_idle %+interior_whitenoise_playing%
  41. on_info = {=is_day} sr_sound_act@outdoor_day
  42. on_info2 = {+interior_whitenoise_playing} sr_idle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement