3 XmasTreeLight m_TreeLight;
5 const string LOOP_SOUND =
"ChristmasMusic_SoundSet";
9 if ( !
GetGame().IsDedicatedServer() )
11 m_TreeLight = XmasTreeLight.Cast(
ScriptedLightBase.CreateLight( XmasTreeLight,
"0 0 0" ) );
12 m_TreeLight.AttachOnMemoryPoint(
this,
"action" );
18 if ( !
GetGame().IsDedicatedServer() )
20 PlaySoundSetLoop( m_AmbientSoundLoop, LOOP_SOUND, 0, 0 );
26 if ( !
GetGame().IsDedicatedServer() )
29 m_TreeLight.Destroy();
30 if ( m_AmbientSoundLoop )
Wrapper class for managing sound through SEffectManager.
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
ContaminatedArea_Base EffectArea EEInit()
override void EEDelete(EntityAI parent)
proto native CGame GetGame()