Jump to content
Sign in to follow this  
Skul

Helicopter landing

Recommended Posts

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

If you didn't understand that, tell me and I'll try to clear it up as best I can. smile_o.gif

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

[Gareth Gates must die]

Share this post


Link to post
Share on other sites

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

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

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

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  

×