• When someone dies in deathrun how to play a sound.
    4 replies, posted
Anyone care to help me make it play a sound when someone dies in deathrun?
[code] function SomeDeathSound( victim, inflictor, attacker ) sound.Play( "path/to/sound", victim:GetPos(), 100, 100, 100 ) end hook.Add( "PlayerDeath", "SoundOnDeath", SomeDeathSound ) [/code]
Does sound need to be .wav? [editline]26th June 2014[/editline] And that goes in which file?
Put it in autorun/server name the lua file whatever you want.
Alright thank you.
Sorry, you need to Log In to post a reply to this thread.