Stingeragent 0 Posted March 31, 2003 Ok. I have a mission with a helicopter, rope, and jeep all named. I have a trigger that activates the 1st script. It tells the rope to go to the position of the helo and it keeps looping so it stays with it. Now I have another script activated by helo that tells the jeep to go to the position of rope but 10 ft down (so that it doesn't hit helo). This works, it follows around the rope. Now I have a 3rd script that creates a parachute and tells it to go to the position of jeep and this also loops. Now it works fine and the para goes to jeep and attaches but the jeep doesn't come down it stays on rope. So I couldn't think of any way to make that 2nd script end when the para gets attached to jeep. So I tried the distance thing..something like.... ? (jeep1 distance chute1 <5) : goto exit .... So what I figured was, when I activated the 3rd script to attach parachute, that 1st looping script would realize the para is within 5m of jeep and it would exit, thereby releasing the jeep to fall with para, but for some reason the jeep doesn't fall. It still keeps going with rope. Any ideas? Share this post Link to post Share on other sites
PFC Mongoose 0 Posted March 31, 2003 I am a total scripting novice, I probably know less about them than you do; but maybe a switch trigger? So you have a trigger that checks to see if </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">para = true<span id='postcolor'> As the condition, and if it is, you have </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">jeep setpos (10 ft. below the rope, however you worked it) = false <span id='postcolor'> as the activation. Take this advice with a bucket of salt, and wait for someone who knows what they're talking about. Share this post Link to post Share on other sites
Guest jacobaby Posted April 1, 2003 I would use ADDACTION, to add a menu option to release the jeep. When that option is clicked, use the called script to set a variable as true. Dont use a ' _ ' before the variable. Call it say RELEASED; In your jeep attached to rope script, have a line that goes like this tucked in the loop. ? RELEASED:exit[code]When your addaction sets that variable as true it will stop the script running.If you cant use addaction for some reason, then use the same principle. Set a variable as true at the point you want the jeep to release.HTHTJ Share this post Link to post Share on other sites