General > Developers Corner
ULX playsound wont work in script.
BlackSanta:
Hi,
I have made a script that plays a sound using ULX playsound when 2 players are left alive. However, it does not play the sound. There are no LUA errors, everything is where its supposed to be. I just don't know whats wrong. Anybody out there that can help me?
Here is the script:
function checkAlive(ply)
if ply:Alive(2) then //Returns Boolean
duel()
end
function duel()
RunConsoleCommand( "ulx", "playsound", "1v1.mp3" )
end
end
Thanks guys.
Megiddo:
Any errors in server or client consoles?
BlackSanta:
None at all, thats whats confusing me.
Megiddo:
Do you have anything that actually calls CheckAlive?
BlackSanta:
Hmmm, I do not believe I do, let me try fixing it and get back to you.
Navigation
[0] Message Index
[#] Next page
Go to full version