Home   Help Search Login Register  

Author Topic: Chopper Load/Unload  (Read 916 times)

0 Members and 1 Guest are viewing this topic.

Rambo

  • Guest
Chopper Load/Unload
« on: 06 Nov 2002, 17:28:56 »
I am having trouble with AI loading & unloading an AI controlled chopper.

My goal is for the following steps to happen:

1. Have a 5 man AI group board an AI controlled chopper.
2. After everyone has jumped on, have the chopper start to take off.
3. Have the chopper land in a remote location, let all of the guys out, and then go back to base.
4. Have the AI men that get out, go on with the mission.

So far, I have been able to get the AI to board the chopper and make it to their destination.  However, when they get there, the chopper sticks around.  If I assign a move wp to the chopper, the whole team moves in that direction too. (I have the chopper reporting to 1 of the guys in the AI group)

I am not sure what is going on.  When I don't have the chopper reporting to anyone, it will not go anywhere, or the chopper will take off before theAI men board, thus the reason why I made it report to one of the AI soldiers.

What I need is a detailed description on how to make this all work right.  I am pretty sure this is just a simple group and wp placement issue, but I can't figure it out since I am new to this.

Thank you in advance,
Rambo

recon

  • Guest
Re:Chopper Load/Unload
« Reply #1 on: 06 Nov 2002, 18:46:06 »
HI there,
  This has pissed me off as well! I think the only way to achive what you are looking for is to write a script for it, something that I have no idea what to do, but check the scripting forum for an answer.
             (recon)

Rambo

  • Guest
Re:Chopper Load/Unload
« Reply #2 on: 06 Nov 2002, 19:07:49 »
You may be right... I'll look on the scripting channel.

However, it seems to me that what I am trying to do is pretty simple.  I have got it to do exactly what I want, except the chopper will not leave, and I am unable to assign the group a move waypoint.  There has got to be a way to avoid scripting... at least I hope  :-\

There are no friendly civilians...
Rambo

Lancer512

  • Guest
Re:Chopper Load/Unload
« Reply #3 on: 06 Nov 2002, 19:17:12 »
Check out the "OFPEC Helicopter Tutorial" here in the Editing Depot. That helped me for some problems.

Are you using the "assignAsCargo" command on the "GET IN" and "GET OUT" waypoints of your group?

You need 2 sets of waypoints. One for the chopper, and another one for your AI group. The group's "GET IN" and the chopper's "LOAD" waypoints have to be synchronized. The same applies for the GETOUT and TRANSPORT UNLOAD waypoints.

Rambo

  • Guest
Re:Chopper Load/Unload
« Reply #4 on: 06 Nov 2002, 20:15:34 »
Lancer,

Thank you for the insight.  I think I know what needs to be done now.  Currently, I have the chopper belonging to the AI infantry group.  When I tried to make the chopper not be part of a group, I found that it would take off before everyone loaded.

However, I now know that this was due to the fact I was not sync'ing those 2 wp's...  I will give this a shot when I get home and see how it goes, thanks again!  By the way... to sync 2 wp's, do you just click on 1 wp, hold down ctrl, and select the other wp, and click on sync?  I assume that's all I need to do... but I thought I would ask since I have never done that yet.

Thanks,
Rambo

Mike

  • Guest
Re:Chopper Load/Unload
« Reply #5 on: 06 Nov 2002, 21:19:51 »
Ok the way I would do it...


Make a chopper but make the fuel empty with the slider bar and then name it Heli1.

Then make your infantry squad. (a second group)

Now u make a " H " heli landing pad where u want the bird to unload

Now to make stuff move...

Start with the chopper.. Make your move wp's which ever u need then the landing put a Transport Unload wp on the Helipad. In the Transport Unload wp put this in the on activation field:

Heli1 land "LAND"

Then a final Move wp where the chopper goes back to base. In that last Move wp put this in the init field unless u need the chopper later in the mission. (it will reduce lag):

deletevehicle heli1

Now to move the infantry squad.. First u need to put a Get In wp on the heli1 chopper. In that Get In WP Init field put:

heli1 setfuel 1

It will wait for all players in your infantry group to board then start up the engine. The next waypoints for the infantry are for u to decide.. The heli unloads then takes off.. If you dont want the helipad make it invisible obviously.

:cheers:
« Last Edit: 06 Nov 2002, 21:29:05 by Mike »

Azraell

  • Guest
Re:Chopper Load/Unload
« Reply #6 on: 06 Nov 2002, 22:46:16 »
http://www.ofpec.com/yabbse/attachments/setfuel_1.zip


here..I did this for a person here, he had same problem. Its practiclly the same as mike described... a visual representation will help you understand it more

Rambo

  • Guest
Re:Chopper Load/Unload
« Reply #7 on: 06 Nov 2002, 23:05:11 »
That just about sums it up!  Thanks!

 ;D

Rambo