Jump to content
Ghost Recon.net Forums

Recommended Posts

Hi all, got a question. Im making a mission for my map and i dont really know how to script so i thought this would be the place. I need a sound to play then after its done playing wait 20seconds then play again then 20 seconds later play again.. but after a actor gets to a certain zone i need it to stop and not play again.

Edited by RR_GRT
Link to post
Share on other sites

What you can do is using a timeelapsed of 20 seconds with a block preseve.

Add a stopif also with a flag which is set to true when the player enters the specific zone.

It should look like this

Group-------->default

trigger------->20 seconds elapsed

response---->block preserve

Stopif zone x is true

Playsound (use the sound you want)

Group-------->default

trigger------->a member of player platoon is within x metres of x (the x you should fill in yourself)

Response---->set flag zone x to true

Link to post
Share on other sites
What you can do is using a timeelapsed of 20 seconds with a block preseve.

Add a stopif also with a flag which is set to true when the player enters the specific zone.

It should look like this

Group-------->default

trigger------->20 seconds elapsed

response---->block preserve

                    Stopif zone x is true

                    Playsound (use the sound you want)

Group-------->default

trigger------->a member of player platoon is within x metres of x (the x you should fill in yourself)

Response---->set flag zone x to true

Just a small point here. It is actually better to put your query above the BlockPreserve so that the block is removed when it returns a true, unless of course you want to reactivate it later in the mission. The way you have it, the time loop will continue executing every 20 seconds for the duration of the mission.

It should look like this

Group-------->default

trigger------->20 seconds elapsed

response---->Stopif zone x is true

                    block preserve

                    Playsound (use the sound you want)

Another alternative to using a flag (again, if you don't need to use the block again) would be:

Group-------->default

trigger------->20 seconds elapsed

response---->Stopif the number of members of the PlayerPlatoon within Zone X is greater than 0

block preserve

Playsound (use the sound you want)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...