Thanks for the help you guys. Okay, so I've placed all the codes just as it is above and it plays the audio track, but when I select it again, an error message will pop up, which I'm guessin is becuase I don't have a "Turn off speaker" action yet So, how would I make it so that I could "Turn off speakers"? Also, once I've made a "Turn off speakers", would it come up with that error message if I did "Turn on speakers" again?
I tried making an action that turned the variable true like this, but it didn't work.
AK_Speaker = [true, _i];
publicVariable "AK_SpeakerOn";
Also, I'm making a 2nd hummvee (hummvee2) that would also have the same speaker action. Could I just simply assign the same script as the 1st hummvee, except change all the "hummvee1"s to "hummvee2"s? If so, then wouldn't the varable get mixed up between the two hummvee's, like one hummmvee changes the variable, then the second hummvee's doesnt work?
I tried making another script for the 2nd hummvee except with "AK_Speaker2" and "hummvee2", but for some reason, I keep getting an error message.