papam77 Posted April 27, 2013 Share Posted April 27, 2013 Hello, how can do when player dead will play any sound ? Link to comment
PaiN^ Posted April 27, 2013 Share Posted April 27, 2013 Use : 'onClientPlayerWasted' -- Event playSound -- function Link to comment
Tete omar Posted April 27, 2013 Share Posted April 27, 2013 example: addEventHandler("onClientPlayerWasted", localPlayer, function() playSound("sound.mp3") end ) Link to comment
papam77 Posted April 27, 2013 Author Share Posted April 27, 2013 Meta: path: /s1.hrajminecraft.cz_22003/mods/deathmatch/resources/[eag]/main_eag/sound script: addEventHandler("onClientPlayerWasted", localPlayer, function() playSound("sound.mp3") end ) And doesn't work Link to comment
Tete omar Posted April 27, 2013 Share Posted April 27, 2013 Make sure that file name is sound.mp3, and make sure that the lua file path is the right path in meta.xml Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now