Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname aaaRWLInteriorSoundControlScript
- ;Controls interior weather sounds
- float timer
- begin gamemode
- ;Move the disabled activators to the player every 3 seconds to reduce the delay of the sound (?)
- if timer < 3
- set timer to timer + GetSecondsPassed
- else
- ;If timer has passed, do stuff here
- ;If player is inside, move and activate the weathers corresponding sound.
- if player.isininterior == 1
- if IsDustyRWL
- DustySound.MoveTo player
- DustySound.enable
- elseif IsOvercastRWL
- DistThunderSound.MoveTo player
- DistThunderSound.enable
- elseif IsLightRainingRWL
- LightRainSound.MoveTo player
- LightRainSound.enable
- elseif IsThunderStormRWL
- HeavyRainSound.MoveTo player
- HeavyRainSound.enable
- elseif IsLightWindRWL
- LightWindSound.MoveTo player
- LightWindSound.enable
- elseif IsHeavyWindRWL
- HeavyWindSound.MoveTo player
- HeavyWindSound.enable
- elseif IsAnchorageRWL
- AnchorageSound.MoveTo player
- AnchorageSound.enable
- elseif IsZionRainRWL
- HHThunderSound.MoveTo player
- HHThunderSound.enable
- ;If weather isn't running, disable them
- elseif IsDustyRWL == 0
- DustySound.MoveTo Rain1
- DustySound.disable
- elseif IsOvercastRWL == 0
- DistThunderSound.MoveTo Rain1
- DistThunderSound.disable
- elseif IsLightRainingRWL == 0
- LightRainSound.MoveTo Rain1
- LightRainSound.disable
- elseif IsThunderStormRWL == 0
- HeavyRainSound.MoveTo Rain1
- HeavyRainSound.disable
- elseif IsLightWindRWL == 0
- LightWindSound.MoveTo Rain1
- LightWindSound.disable
- elseif IsHeavyWindRWL == 0
- HeavyWindSound.MoveTo Rain1
- HeavyWindSound.disable
- elseif IsAnchorageRWL == 0
- AnchorageSound.MoveTo Rain1
- AnchorageSound.disable
- elseif IsZionRainRWL == 0
- HHThunderSound.MoveTo Rain1
- HHThunderSound.disable
- ;If player is outside, disable them
- else
- DustySound.disable
- DistThunderSound.disable
- LightRainSound.disable
- HeavyRainSound.disable
- LightWindSound.disable
- HeavyWindSound.disable
- AnchorageSound.disable
- HHThunderSound.disable
- set timer to 0
- endif
- endif
- endif
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement