Home   Help Search Login Register  

Author Topic: Helicopter not dropping AI soldiers.  (Read 736 times)

0 Members and 2 Guests are viewing this topic.

Bad Maniac

  • Guest
Helicopter not dropping AI soldiers.
« on: 16 Apr 2003, 20:10:34 »
Hi, it's me again  ;)

I have a helicopter starting in the air, and a group of soldiers starting in it's cargo, but they are not grouped with the copter.
One soldier is Player, the others are playable. I get them in the helicopter with:
This moveInCargo Hkp1;       (Hkp1 is obviously the name of the helicopter)

Then I have  a Transport Unload waypoint for the helicopter, and then a move WP so the copter flies away after dropping the soldiers.
Now, the copter drops the player, not the AI soldiers (playable) and since it doesn't eject them, it stays on the ground...

How can I get the Helicopter to drop ALL the soldiers at the waypoint? and Why is it dropping the player, not the AI soldiers?

(I have been through the FAQ ninteen times, and all I can find says Im doing it correct...)

titan

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #1 on: 16 Apr 2003, 20:13:21 »
try putting a way point from the AI guys to a place near where they land...then sync the AI waypoint with the Transport Unload waypoint...try that

Bad Maniac

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #2 on: 16 Apr 2003, 20:22:45 »
Tried placing  Get Out WP near the Transport Unload WP, and Syncing them, that didn't help...

tried placing an unload, a transport unload, and a move waypoint near the hkp1 transport unload WP, and it didn't help.

I tried recreating the whole thing again, clearing the map and restarting, and I get exactly the same result. I really don't know what I'm doing wrong.

Thanks for you quick reply btw, you guys are awesome  :D
« Last Edit: 16 Apr 2003, 20:23:21 by Bad Maniac »

titan

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #3 on: 16 Apr 2003, 20:28:02 »
i g2g right now, but i will send u a example mission in a bit!

Bad Maniac

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #4 on: 16 Apr 2003, 20:46:40 »
thanks, send it to ICQ: 11009418 or m.nilsson@btinternet.com

titan

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #5 on: 16 Apr 2003, 22:42:26 »
well cld u tell me exactly whats happening, as in the units!

what kind of units, how many and are they grouped in the heli!

Bad Maniac

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #6 on: 17 Apr 2003, 00:24:10 »
Ok.
One soldier is player, one or more (I've tried different numbers) soldiers are playable.
Heli starts in air, flies to the drop zone, lands perfectly on the invisible H, The soldier that is player jumps out, and the "Get Out" WP changes to "Wait for Others"
But the other soldiers just stay in the copter.

And since they dont unload, the copter doesn't continue to it's next WP. So what I have is the player on the ground, and a Copter just sitting there with rotors spinning, and a bunch of soldiers inside who refuse to come out.

I have it set up with first an invisible H, then an "Transport Unload" WP for the Copter and a "Get Out" WP for the group of soldiers. All in the exact same position, but I've tried moving them around a bit.

Nothing seems to help.  ???



titan

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #7 on: 17 Apr 2003, 00:26:06 »
im tired right now, so i will have a look far ya tomorrow.

p.s. are the AI and player grouped?

Bad Maniac

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #8 on: 17 Apr 2003, 00:36:45 »
Yes they are grouped, and I've tried in formaton, and no formation. My AI's just dont like to walk.

[EDIT]
Ok, It seems I found a way of doing it, not my ideal way, but anyways:
One of the playable soldiers has to be higher rank than the others, so he can give the order to disembark, if the player is the highest rank, or same rank, he will jump out, but the others will just sit there...
Maybe I can make a trigger, so that when the player is in the LZ he will issue the disembark order to the others... *tries*
[/EDIT]
« Last Edit: 17 Apr 2003, 01:01:42 by Bad Maniac »

MadFred

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #9 on: 17 Apr 2003, 01:11:42 »
You say you have put in:..this MoveIncargo heloname...

I take it it is in the officers init field?

Well here's what you can do:

first you have the Helo "HKp1"

then you have the group (seperate from helo) ..lets call them group1

Now give the helo a transport unload waypoint where you want it to be

Put this in the group leaders init field:

group1=group this; "_x moveincargo HKp1" foreach units group1

then give your group a waypoint to where they should go when out of the chopper!

I have also put in example!

Hope this helps

MadFred

MadFred

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #10 on: 17 Apr 2003, 01:41:16 »
oops I forgot something,

sometimes the AI refuses to get out when you tell them to in cases like this,

for this you must unassign the vehicle

To do this put in the "on activation" field of the helo's Transport Unload WP the following sentence:

"unassignvehicle _x" foreach units group1

I edited that standard helo transport example I had put in adn now it has player and playable units (like you need it to be) plus that unassign stuff.

check it out and see if it helps!

MadFred

Bad Maniac

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #11 on: 17 Apr 2003, 02:58:06 »
Well it helped, but I also had to rethink a bit.
I'm trying to create a mission in a "Delta Force" sortof way, where you are a loose team of soldiers, witout a direct leader. But for this scenario, it seems I will have to give one AI a higher rank than the others, so that everyone will disembark from the Copter. Since I want it to be MP only, with no AI, I suppose I could just have that AI leader leave the group once he's ordered everyone to disembark. *lol*

*tired*

MadFred

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #12 on: 17 Apr 2003, 04:51:16 »
so you want to have all the soldiers in the helo to be seperate units? (not a group as such?)

well if all the men in the MP mission are human then it isnt a problem...everyone just has to disembark on his own.the helo will wait till all are out on the unload transport WP.

and for that leadership thing....even with a group of men that are all privat (for instance) there will always still be a leader.. the first unit that has been placed I would think.

Bad Maniac

  • Guest
Re:Helicopter not dropping AI soldiers.
« Reply #13 on: 17 Apr 2003, 11:47:25 »
Yeah, the solution is to make one non playable soldier, and make him higher rank than the others, then I can have him give the disembark order, and then detach from the group (if necessary)

Bottom line, it works,
Thanks so much for all your help.