kisraul7 Posted October 28, 2011 Share Posted October 28, 2011 Hi. I will give four sound the countdown. 1.mp3, 2.mp3, 3.mp3, go.mp3 I write this: g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd("audio/3.mp3")', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd("audio/2.mp3")', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd("audio/1.mp3")', 44) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd("audio/0.mp3")', 45) But this wrongly. Help me pls. Link to comment
Castillo Posted October 28, 2011 Share Posted October 28, 2011 Try this: g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, "playSound","audio/3.mp3") g_RaceStartCountdown:addClientHook(2, "playSound","audio/2.mp3") g_RaceStartCountdown:addClientHook(1, "playSound","audio/1.mp3") g_RaceStartCountdown:addClientHook(0, "playSound","audio/0.mp3") Link to comment
kisraul7 Posted October 28, 2011 Author Share Posted October 28, 2011 Thank You. This is good. Link to comment
MrXz Posted January 11, 2012 Share Posted January 11, 2012 But .. that countdown? countdown_client or countdown? and that line? Link to comment
Castillo Posted January 11, 2012 Share Posted January 11, 2012 It goes in race_server.lua, search for the word "countdown". 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