Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: Hamwunk
[BO3] Does anyone know how to play a music sound file when in a certain area of a map? (looping)
ModmeBot:
Reply By: Wild
Don't know if this is what you're looking for but it seems you can use this method and just use music.
ModmeBot:
Reply By: Hamwunk
AGC
Don't know if this is what you're looking for but it seems you can use this method and just use music.
ModmeBot:
Reply By: Exofile
I had a similar thing made for a fun project of mine a while back by the help of lilrobot & lilrifa. Upon entering a room; music will play from struct(s), and wait an allocated time until it plays another, depending on whether the player is in the room or not. I'm sure you can edit the function to have it your way, but it's somewhat like what you're looking for.
Hope this helps?
ModmeBot:
Reply By: Hamwunk
Exofile=""></radio.size;i++)> I have a couple questions. First, what do you need to do in radiant? add a trigger? Also, does this go into the .gsc and does it go to the bottom of the script? Lastly, is this for BO3?
I had a similar thing made for a fun project of mine a while back by the help of lilrobot & lilrifa. Upon entering a room; music will play from struct(s), and wait an allocated time until it plays another, depending on whether the player is in the room or not. I'm sure you can edit the function to have it your way, but it's somewhat like what you're looking for. function amb_radio() { radio = getEntArray("ambient_radio", "targetname"); trigger = getEnt("exo_bio_radio_1", "targetname"); possible_songs = StrTok(radio[0].script_string, ","); for(;;) { trigger waittill("trigger", player); IPrintLn( "Player Entered" ); wait(0.1); song = possible_songs[RandomIntRange(0, possible_songs.size)]; IPrintLn( song ); for(i=0;i<radio.size;i++) {="" radio="" playsound(song);="" }="" wait(204);="" iprintln(="" "song="" done"="" );="" wait(randomintrange(30,="" 60));="" iprintln(="" "wait="" done"="" );="" }="" }="" ="" hope="" this="" helps?
ModmeBot:
Reply By: Exofile
Hamwunk
I have a couple questions. First, what do you need to do in radiant? add a trigger? Also, does this go into the .gsc and does it go to the bottom of the script? Lastly, is this for BO3?