Jump to content
Sign in to follow this  
JonHye

Helicopter waypoint

Recommended Posts

I need to know how to make a helicopter be in search and destroy mode, when it reaches a variable "waypoint".

I have a no-fuel UH60-MG at my base. I have a squad of infantry, with the player as leader. I have the mission set up, so that the heli flies to the players location, when radio alpha is called. I don't want it to land when it reaches it's destination, but to fly around and "look" for the player sqaud. When the player throws a red smoke, the heli lands close to the smoke and picks up the squad. I've got the whole landing when smoke is thrown thing going fine, but I can't seem to make the chopper fly around the "radio call position" to "look" for the squad. It just flies past you and stops 4-700 meters away from the player.

I would very much like if the heli would act like it had reached a search and destroy waypoint, so it could fire at the russians I have arriving at the "radio call location".

Well how to do this best? Do I use the "heli move (getpos player)" way and somehow tell the heli to do more than just move and wait?

Or do I use some kind of " [heli,x] setwppos (getpos player)" where x is the waypoint number for the landing zone? I can partly make this work, but the heli is moving very fast, and passes me + when I throw the smoke, get in and take off, the heli really acts strange as to where it wants to go. ( When the heli takes off after picking up the player I have a "heli move (getpos base)" thing going (could possibly change that as well).

Any advice is welcome.

Thanx in advance!

Share this post


Link to post
Share on other sites

Well! It seems I have hit a subject, no one knows anything about.

Nevermind I solved it myself.

What I did was make a nr. 0 waypoint which was of the search and destroy type. I started the heli without any fuel. I made the radio trigger fill the heli with fuel, and made a scriptwith something like:

[heli,1] setwppos (getpos player)

~10

@(unitready heli)

~300

heli move (getpos Base)

~10

@(unitready heli)

heli land "land"

That give you a chopper that flyes by a couple of times, and waits for about 5 minutes before returning to base. If you throw the red smoke, the chopper lands and picks you up ( but that is a whole different script).

well the only problem with it, is that you can only call the helicopter once. But that doesn't really matter that much. biggrin.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  

×