Jump to content
Sign in to follow this  
Doolittle

Don't take off, heli!

Recommended Posts

I feel embarrassed asking this. It seems like such a simple thing. I've looked on OFPEC and can't seem to find anything. What I was wondering is, how do I place a helicopter on the map with a MOVE or whatever waypoint, and then set that waypoint so that it's Trigger Switched or something? Er, what I want is the helicopter to stay on the ground (with the pilots still inside) and then when I detect a player with a trigger, the helicopter will take off and MOVE to a set spot.

I've tried stuff like Helicopter -> Hold -> Move where the Hold has a switch on it so that heli goes to Move when enemy found, but of course the heli takes off and then just hovers in the air at Hold. Yes, I know you can do a GET OUT, and then on the trigger switch activation do a GET IN and MOVE, but...I don't want to do that because what I'd like is to have a Helicopter on the ground, and have 3 different groups board it, then have the helicopter just sit there, then after some event it takes off and lands somewhere else and all 3 groups disembark and go off by themselves while the helicopter takes off and goes back to base.

How would I do this?? Thank you! (Most of the stuff I read about has the helicopter already flying and landing to pick people up or some such, never just sitting on H and THEN taking off)

Doolittle

Share this post


Link to post
Share on other sites

Use :

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

heli setBehaviour "careless";heli lockWP true;heli land "land"

<span id='postcolor'>

But you must have move wp near landing H and you must acticvate the code before heli reach that move wp.

To make heli continue its wps execute :

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

heli setBehaviour "aware";heli lockWP false

<span id='postcolor'>

Share this post


Link to post
Share on other sites

The way I do this is to have the chopper start with no fuel, and then in the trigger's activation field put:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">choppername setfuel 1<span id='postcolor'>

choppername is ofcourse the name of your heli!  smile.gif

that should work...

Share this post


Link to post
Share on other sites

Set chopper fuel to 0

Trigger

Activation : anybody

Activate: once

Condition: Whatever condition you want for when the chopper will take off

Onactivation: choppername setfuel 1

Place in a remote corner of your map to avoid accidental activation.

Share this post


Link to post
Share on other sites

Yes, I am using the setFuel approach and that works quite nicely. I had forgotten about the lockWP command, but I won't need it here.

Thanks for the help guys!

Doolittle

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  

×