Skul 0 Posted September 9, 2003 Hey there. How do you make a mission end when you land a helicopter after completing all the objectives? I've put the condition: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this AND obj1flag AND obj2flag (The waypoint is a GET OUT one The trigger is a West - Present one) The flags get activated fine, but the trigger ends the mission practically straight away! I've put that code in the trigger, then waypoint then both. I even tried synching the waypoint and trigger together, but the mission just ENDS! If you didn't understand that, tell me and I'll try to clear it up as best I can. I really need to know this, as I want to release it to the public and I don't want the mission to end without the player landing, but instead hanging in the air. [Gareth Gates must die] Share this post Link to post Share on other sites
TheMcDeth 0 Posted September 10, 2003 Howabout the following added to end trigger condition: getpos chopper select 2 == 0 Share this post Link to post Share on other sites
tankieboy 0 Posted September 12, 2003 Cant you just sink an end trigger with the getout wp? Share this post Link to post Share on other sites
MrZig 0 Posted September 12, 2003 I think he already tried that. And if I'm not mistaken (please correct me if I'm wrong) the syncing the trigger with the waypoint only means that once the waypoint is activated, you can go to your next waypoint. Share this post Link to post Share on other sites
Skul 0 Posted September 12, 2003 Hey there! Been without the Internet for a while, but I got it back online again. Just want to say thanks for the suggestion McDeath. Gonna go try that now! Later! [Gareth Gates must die] Share this post Link to post Share on other sites
shadow 6 Posted September 12, 2003 I don't know about Mcdeath's idea (never tried it). I always use a script to check a chopper's height: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop1 height = getpos unitname select 2 ? (height <= 1) : landed = 1; exit ~0.01 goto "loop1" Then use the variable landed ==1 and any other variable in a trigger's condition Share this post Link to post Share on other sites