Jump to content
Sign in to follow this  
kittycat

Make looping sound effect

Recommended Posts

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

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! smile_o.gif

Share this post


Link to post
Share on other sites

One thing i really hate is Music during the Game play smile_o.gif

Should only be for Intros, Outros and Cutscenes ;)

Share this post


Link to post
Share on other sites
One thing i really hate is Music during the Game play  smile_o.gif

Should only be for Intros, Outros and Cutscenes  ;)

Then don't play my mission. tounge_o.gif

Solutions:

1. It's optional.

2. Maybe I'll addon a radio command to allow shutting it off/on.

But I still need help! crazy_o.gif

Share this post


Link to post
Share on other sites

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? rock.gif

<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. rock.gif?

Share this post


Link to post
Share on other sites
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? rock.gif

<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. rock.gif?

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

Thanks.

I had understood that Activation=None means that nothing in particular is required to activate it.

Otherwise, what is Activation=None for? rock.gif

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×