Home   Help Search Login Register  

Author Topic: heli question..  (Read 929 times)

0 Members and 1 Guest are viewing this topic.

Offline GomerPyle

  • Members
  • *
  • OFPEC rocks.....
heli question..
« on: 19 Feb 2003, 02:09:19 »
Hi.

I got a question guys.

I have a group "playable" units inside a heli using the incargo init on the leader. Then i got a waypoint for the heli. Thats a unload cargo waypoint with (heliname land "get out") in the On Activation. But the heli wont land when i play it. Just hoover above. When i preview it its ok. The only when i preview it is that the after the leader jumps out the heli goes into hoover again until the leader tells them to disembark.

In advance Thanks for your help..

Gomer

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:heli question..
« Reply #1 on: 19 Feb 2003, 04:39:54 »
Heli boarding and disembarking sample map attached :)
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"

Offline GomerPyle

  • Members
  • *
  • OFPEC rocks.....
Re:heli question..
« Reply #2 on: 19 Feb 2003, 04:40:40 »
Quote
The 'counter' for the assignas/movein command is the unassignvehicle command... you could try that.

However a TRANSPORT UNLOAD waypoint should do the same thing. Just note, when using a TRANSPORT UNLOAD waypoint, there's no need for a GET OUT waypoint, or any syncing. A TRANSPORT UNLOAD waypoint should automatically kick all cargo out of the vehicle, no matter what/where the cargo's next waypoint is.

However if that doesn't work, I'd suggest something like:

"unassignvehicle _x" foreach (crew jeep - [(driver jeep)])

I tried this. But still the now the leader is the only one jumping out and in some cases the helis going back to hoover..

I use on the group leader to make them start as cargo:

group1 = group this; "_x moveInCargo uh1" foreach units group this

And this on the helis Unload Cargo Waypoint:

"unassignvehicle _x" foreach (crew jeep - [(driver jeep)])

Before i tried this i had

uh1 land "GET OUT" - ------ - > did not work..

Anyone have any idea of how to make them get out of the heli without any thing going wrong.? Plz help....

Thanks

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:heli question..
« Reply #3 on: 19 Feb 2003, 04:47:52 »
The attached map uses "[_x] ordergetin true" foreach units groupname and "[_x] ordergetin false" foreach units groupname  as well as unassignvehicle.


I think that maybe what u need :) try it out.

Zay out
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"

Offline GomerPyle

  • Members
  • *
  • OFPEC rocks.....
Re:heli question..
« Reply #4 on: 19 Feb 2003, 05:08:38 »
I am sorry but it did not work  :-\

The thing you gave me was a tuturial of how to do it by telling them to get into the heli. and get out again. That works fine aslong as the leader is AI... And maybe there is something about playing as leader.. Any ideas?

But my guys are already in the heli. with this in the groupleaders init:

"_x moveInCargo heliname" foreach units group this

And the as mentioned the heli got a Unload Cargo waypoint. This is the problem. Somehow it does not seem to work when i play it/preview it. But if all of the guys in the heli is AI its working. When i preview it i get out of the heli but the rest of the group stays inside and the heli goes back to hoovering. (and i have tried lots of different things) Sometimes it even stays on the ground....

Thanks for the help anyway......  :)
« Last Edit: 19 Feb 2003, 05:10:07 by GomerPyle »

Bronski

  • Guest
Re:heli question..
« Reply #5 on: 19 Feb 2003, 05:39:29 »
Gotta love the choppers.   ;D

I had a lot of trouble with this earlier.  I'll go back and see if i can figure it out again.  Haven't messed with choppers in a while.

If you would, attach your mission.

Bronski

  • Guest
Re:heli question..
« Reply #6 on: 19 Feb 2003, 05:57:41 »
I think i found your problem:

"_x assignascargo heliname" foreach units groupname

I did the the following:

I have a chopper named heli with a "transport unload" waypoint then a "move" waypoint after that so it will fly away.  

I have a group with the following in the init field of the leader:  alpha = group this; "_x moveInCargo heli" foreach units alpha; "_x assignasCargo heli" foreach units alpha  

Now hit preview and it should work.  I did it in preview and i exported it to single player as well.  Both worked fine.

Also, before you go through aggravation with getting the helo to wait for your guys to get in you should check out this script:  http://www.ofpec.com/editors/resource_view.php?id=197
« Last Edit: 19 Feb 2003, 06:01:58 by Bronski »

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:heli question..
« Reply #7 on: 19 Feb 2003, 07:10:04 »
Ok fixed ;D

Now they all get out no matter what.

You can be leader or a private  or whatever and they all nicely get out and chopper flys away

Check attached map

O and BTW I was in a hurry so if you look at the disembark.sqs theres a lotta junk text  under #exit-- you can delete all that, lol and I think at the top it says its a rapple script by xcess, I used a bit of his code and made the rest to work as a disembark script.  :)

Zay out
« Last Edit: 19 Feb 2003, 07:17:10 by Zayfod »
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"

Offline GomerPyle

  • Members
  • *
  • OFPEC rocks.....
Re:heli question..
« Reply #8 on: 19 Feb 2003, 13:24:56 »
Cheers guys. Really helpful..... Now i know where to go next time i got trouble....

Its a Nampack2 mission so i didnt bother attaching it since i not know how many got it.....

:)

Offline GomerPyle

  • Members
  • *
  • OFPEC rocks.....
Re:heli question..
« Reply #9 on: 19 Feb 2003, 18:45:21 »
Hmm - did not work Zayfod.

Well it did work. But i got 2 choppers uh slick (nampack2) with troops going for 2 invisible helipads very close to eachother. Now the chopper i preview in lands and disembark the guys while it moves away again. All dies except the 2 first guys. If i try the other chopper the one i first tried is ok but the one i preview is disembarking troops while touching the ground...

is there something with the fact i got 2 choppers? and this helomoveout?

If so can you help me fix that. I am poo fixing the scripts....

Thank you very much for your help on this...... Very much appriciated.....

PS: This is a nampack mission....I can attach it if anyone of you have that.
« Last Edit: 19 Feb 2003, 19:39:57 by GomerPyle »

Offline GomerPyle

  • Members
  • *
  • OFPEC rocks.....
Re:heli question..
« Reply #10 on: 19 Feb 2003, 20:25:52 »
It did work when i copied that disembark script and had two of them.

disembark.sqs
disembark2.sqs

I went into the disembark2.sqs and renamed helomoveout to helomoveout2

Went into the editor and renamed the helomoveout condition for the chopper using disembark2.sqs to helomoveout2.

And now it worked.

Cheers for that m8....
                                   
::)