• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Play the sound only once

ShadowBilll

New Member
Joined
Aug 8, 2018
Messages
6
Reaction score
0
I want to play the audio only once
Lua:
function onButtonMousePress()
  musicChannel = g_sounds.getChannel(1)
  musicChannel:enqueue(musicFilename)
end

I'm calling the function
Lua:
mymodule.onMousePress = onButtonMousePress
 
Try change line 3 to:
Lua:
musicChannel:play(musicFilename, 0)
 
Last edited:
I changed it to:
Lua:
musicChannel:play(musicFilename, 0)
But the audio doesn't play, I'm using otclientv8
 
Back
Top