So I am creating a jukebox, and it cant find the sound. Its in the same addon folder. sound>folder>sound.wav, lua>entities>jukebox>init. I have the dir right, any help is appreciated.
If you want to see code:
[url]http://pastebin.com/tRbabq6M[/url]
EDIT: Im going to try resource.AddFile( "" ) in a autorun lua file see if that does anything EDIT: That did nothing
Instead of "sound/fallout3/falloutwaybackhome.wav", try removing the sound bit so it says "fallout3/falloutwaybackhome.wav"
Just a guess though. If I'm wrong, please don't close the thread again like you did with the previous one so someone else can actually try to help
No point having tons of separate threads for one problem when there could just be one
[QUOTE=MPan1;51282180]Instead of "sound/fallout3/falloutwaybackhome.wav", try removing the sound bit so it says "fallout3/falloutwaybackhome.wav"
Just a guess though. If I'm wrong, please don't close the thread again like you did with the previous one so someone else can actually try to help
No point having tons of separate threads for one problem when there could just be one[/QUOTE]
Ill try that, btw I only closed that thread because that was for a different problem. Was I not supposed to? D;
[editline]30th October 2016[/editline]
[QUOTE=Bkamahl;51282187]Ill try that, btw I only closed that thread because that was for a different problem. Was I not supposed to? D;[/QUOTE]
It worked thnx so much :D
That's okay! It was just a guess though
[QUOTE=MPan1;51282190]Also, with the code you posted in the link, rather than your radioPlaying variable being a number, you could make it a boolean to simplify the code a little:
[CODE]
local radioPlaying = false
// then later in the code:
if radioPlaying then
c:ConCommand( "stopsound" )
radioPlaying = false
else
radioPlaying = true
[/CODE][/QUOTE]
Will do thanks :D closing thread
Sorry, you need to Log In to post a reply to this thread.