GRT 0 Posted August 14, 2004 Share Posted August 14, 2004 (edited) 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 August 14, 2004 by RR_GRT Quote Link to post Share on other sites
el nino foxhound 0 Posted August 14, 2004 Share Posted August 14, 2004 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 Quote Link to post Share on other sites
Stalker 0 Posted August 14, 2004 Share Posted August 14, 2004 that's the way it works Quote Link to post Share on other sites
Jack57 0 Posted August 14, 2004 Share Posted August 14, 2004 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) Quote Link to post Share on other sites
el nino foxhound 0 Posted August 15, 2004 Share Posted August 15, 2004 Thanks I just keep learning each day. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.