Jump to content
Sign in to follow this  
celery

Helicopter hovering with AI

Recommended Posts

I want to allow the player to switch to either minigun on the Blackhawk while still keeping the machine in the air.

I made a script like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player setpos [0,0,0]

player moveinturret [uh,[1]]

pilotlogic="Logic" createvehicle [0,0,0]

pilotlogic moveindriver uh

It only works to stabilize the flight path of the chopper while it goes down. When I do it on the ground, the pilot lifts the chopper to the air and hovers just like I want it to, but the script's function is to do it in the air. So how can I make the pilot keep the chopper steady and maintain the current altitude?

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  

×