kittycat 0 Posted January 15, 2004 How can I make a loop sound effect.. like radio Share this post Link to post Share on other sites
RED 0 Posted January 15, 2004 Make a script: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop unitname say "radio" ~timeofsound (45 for example) goto "loop" RED Share this post Link to post Share on other sites
theavonlady 2 Posted September 13, 2004 Is there any reason why this cannot or should not be done trough a trigger? If so, I'm having a problem triggering a loop for a music track. I've got a trigger defined as follows: Axis A = 0 Axis B = 0 Angle = 0 Ellipse Activation = None, Repeatedly Present Timeout Min = 400, Max = 400, Mid = 400 Type = None Text = Background sound loop Condition = On Activation = playMusic "backgroundTrack" I know the music track is OK because I have the same PlayMusic command in the mission's init.sqs file and it starts playing at the beginning of the mission. FYI, the length of the track is slightly longer than 400 seconds. Help appreciated. TIA! Share this post Link to post Share on other sites
Junker 0 Posted September 13, 2004 One thing i really hate is Music during the Game play Should only be for Intros, Outros and Cutscenes ;) Share this post Link to post Share on other sites
theavonlady 2 Posted September 13, 2004 One thing i really hate is Music during the Game play  Should only be for Intros, Outros and Cutscenes  ;) Then don't play my mission. Solutions: 1. It's optional. 2. Maybe I'll addon a radio command to allow shutting it off/on. But I still need help! Share this post Link to post Share on other sites
theavonlady 2 Posted September 13, 2004 Something is obviously elementary wrong with my trigger definition. I changed the action to issue a radio message after 15 seconds and neither the message's sound or text appeared. Can anyone figure out why this doesn't activate? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Axis A = 0 Axis B = 0 Angle = 0 Ellipse Activation = None, Repeatedly Present Timeout Min = 15, Max = 15, Mid = 15 Type = None Text = Background sound loop Condition = On Activation = leader player sideRadio "R04r02" EDIT: I've tried everything imaginable and I cannot get it to loop by trigger. So I've resorted to executing a loop script, as suggested earlier, above. I'd still love to know how this can be done by trigger or why it's not working. ? Share this post Link to post Share on other sites
Zombie_Mod 0 Posted September 13, 2004 Something is obviously elementary wrong with my trigger definition. I changed the action to issue a radio message after 15 seconds and neither the message's sound or text appeared.Can anyone figure out why this doesn't activate? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Axis A = 0 Axis B = 0 Angle = 0 Ellipse Activation = None, Repeatedly Present Timeout Min = 15, Max = 15, Mid = 15 Type = None Text = Background sound loop Condition = On Activation = leader player sideRadio "R04r02" EDIT: I've tried everything imaginable and I cannot get it to loop by trigger. So I've resorted to executing a loop script, as suggested earlier, above. I'd still love to know how this can be done by trigger or why it's not working. ? Because it's activated by none. Nothing kicks it off. Why don't you have the trigger at the player's position, and have it activated by WEST? Or have the trigger cover the whole island, and have it activated by WEST repeatedly? Share this post Link to post Share on other sites
theavonlady 2 Posted September 13, 2004 Thanks. I had understood that Activation=None means that nothing in particular is required to activate it. Otherwise, what is Activation=None for? I did get it to work when changed to WEST but I don't think the Repeat kicked in. Share this post Link to post Share on other sites
BoweryBaker 0 Posted September 13, 2004 I see why you prefer trigger over scripts. In case you find a fine melding of the two, i have sent in tutorials under the names of my friends who helped me into ofpec. Share this post Link to post Share on other sites
HeinBloed 0 Posted September 14, 2004 There's a solution without any script. Create two triggers with the settings you wrote above. First trigger: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Timeout Min = 15, Max = 15, Mid = 15 Condition: starttimer On Activation: startmusic= true; starttimer = false Second trigger: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Timeout Min = 0, Max = 0, Mid = 0 Condition: startmusic On Activation: leader player sideRadio "R04r02"; startmusic= false; starttimer = true init.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">starttimer = true startmusic= false Share this post Link to post Share on other sites