Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;** same basic script for every space restrictor
- [logic]
- active = sr_idle
- [sr_idle]
- on_actor_inside = sr_sound_act@underground %+interior_whitenoise_playing%
- ;** when actor goes inside this space restrictor, play the sound and enable the info portion "interior whitenoise playing"
- [sr_sound_act@underground]
- ;** play the interior ambient sound
- theme = sr_indoor_cement
- delay = 0
- max_delay = 0
- stereo = false
- ;** when actor goes outside, find out if it is DAY or NIGHT
- ;** disable the info portion
- on_actor_outside = {=is_day} sr_sound_act@outdoor_day %-interior_whitenoise_playing%, {!is_day} sr_sound_act@outdoor_night %-interior_whitenoise_playing%
- [sr_sound_act@outdoor_day]
- ;** play the outdoor, daytime ambient sound
- theme = outdoor_white_noise_day
- delay = 0
- delay_max = 0
- max_delay = 0
- stereo = false
- on_actor_inside = sr_idle %+interior_whitenoise_playing%
- ;** enable the infoportion when the actor goes outside
- on_info = {!is_day} sr_sound_act@outdoor_night
- ;** when it becomes night, change to the outdoor ambient nighttime sound
- on_info2 = {+interior_whitenoise_playing} sr_idle
- ;** if the infoportion is enabled, stop playing the outdoor ambient noise
- ;** by going back to sr_idle, the script will run again once the player enters this same space restrictor
- [sr_sound_act@outdoor_night]
- theme = outdoor_white_noise_night
- delay = 0
- delay_max = 0
- stereo = false
- on_actor_inside = sr_idle %+interior_whitenoise_playing%
- on_info = {=is_day} sr_sound_act@outdoor_day
- on_info2 = {+interior_whitenoise_playing} sr_idle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement