Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealShare.UITriggeredRainSound


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
//==============================================================
// TriggeredRainSound
//==============================================================
// Designed for Weather Simulation System.
// It play's rain sound when raining.
//==============================================================
// by Raven
class UITriggeredRainSound extends UIWeather;

#exec TEXTURE IMPORT NAME=RainS FILE="Textures\Icons\RainS.bmp" GROUP=Icons LODSET=2

var(RainSound) sound RainSound;
var(RainSound) sound EndRainSound;

simulated function AssignRain(bool IsRaining)
{
	if (IsRaining==true)
	{
		AmbientSound=RainSound;
	}
	else
	{
		if (EndRainSound != none)PlaySound(EndRainSound);
		AmbientSound=none;
	}
}

defaultproperties
{
				bHidden=True
				Texture=Texture'UnrealShare.Icons.RainS'
				SoundRadius=64
				SoundVolume=190
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: zo 11-11-2012 21:10:28.000 - Creation time: zo 11-11-2012 21:14:21.240 - Created with UnCodeX