HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ear Ringing Not Working

12-28-2006, 11:48 PM#1
illidan92
I've searched the forums and found ways to play a sound for only one player, but mine seems to either not work at all or only work once and then never work again >.<. RSVP, heres the trigger:
Trigger:
Frag Grenade
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Rifle Grenade Dummy
Collapse Actions
Custom script: local fogmodifier g
Animation - Play (Casting unit)'s spell animation
Custom script: call PolledWait(.7)
Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 150.00 at (Target point of ability being cast), dealing 50.00 damage of attack type Normal and damage type Normal
Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 400.00 at (Target point of ability being cast), dealing (Random real number between 0.00 and 25.00) damage of attack type Normal and damage type Normal
Collapse Unit Group - Pick every unit in (Units within 600.00 of (Target point of ability being cast)) and do (Actions)
Collapse Loop - Actions
Custom script: if GetLocalPlayer() == GetOwningPlayer(GetEnumUnit()) then
Custom script: call StartSound(gg_snd_ring4)
Custom script: call KillSoundWhenDone(gg_snd_ring4)
Custom script: endif
Visibility - Create an initially Enabled visibility modifier for (Owner of (Casting unit)) emitting Visibility from (Target point of ability being cast) to a radius of 250.00
Custom script: set g=GetLastCreatedFogModifier()
Custom script: call TriggerSleepAction (2.00)
Custom script: call DestroyFogModifier (g)
12-28-2006, 11:51 PM#2
Ammorth
If you remove a sound variable, you will not be able to use it again. Sounds do take up memory, so only remove them if you are never going to use them again (intro music). Otherwise let them be.
12-29-2006, 12:32 AM#3
illidan92
God i'm stupid. Thanks!