Jump to content
Sign in to follow this  
cactus

Loading units into empty chopper

Recommended Posts

Trying to make a group to load into an empty chopper, waiting for the pilot to arrive and then take of. But I have a few problems...

1) How do I make the group get in? Can't use the "LOAD"-waypoint since the chopper is empty and if I use "GET IN" only the leader get in, IF I assign him as cargo in the OnActivation for the WP else they are just standing around not even trying to get in. I want the WHOLE group to get in...

2) If I let the pilot arrive and sync a "LOAD" with "GET IN" the chopper takes of and flies into the sunset... hmmm....

Any good suggestions how to make the group get into the chopper w/o having to set them as cargo from beginning?

(A totally unrelated question: How do I make the Leader group leader? Really can't see how the command "group" is working and BIS example don't reveal much (group player == group leader player))

Thanks in advance!

Share this post


Link to post
Share on other sites

Done that but can't find the answer to that specific question. Thanks anyway.

Share this post


Link to post
Share on other sites

You shouldn't be having this much trouble with it.

I suggest opening the Desert Island and testing a bit.

Do this:

Put down an empty UH60-MG

Press F2(Group) and place a West Group of infantry.

Select the Office (leader)

Press (F4) and make a [GET IN] Waypoint from him to the chopper.

Place a soldier, not part of the group, and make it your player.

Press "Preview"

watch what happens.

Share this post


Link to post
Share on other sites

You can do that too

here is an example

1-Create a soldier, yourself

2-Create an empty UH60, edit its properties and name it HELICO

3-Create an infantry group (west), it will create a 9 guy squad

4-edit the officer properties and name him NO1 , now in its initialisation line , put this

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">TEAM1=group this; "_x assignascargo HELICO" foreach units TEAM1<span id='postcolor'>

with that , you will give the name TEAM1 to all the group and they all will be assigned to the cargo position (but they will not be teleported into it) of the UH60 named HELICO

5-now edit each guy of the squad and give them a specific name, for the example NO2 NO3 NO4 NO5 NO6 NO7 NO8 and NO9

6-create a trigger , and put the trigger where yourself as player are (IMPORTANT IF YOU WANT TO USE THE RADIO, and so to make this trigger to work)

now edit its properties , select at "Activation" Radio Alpha

and put this at the line On Activation

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[NO1,NO2,NO3,NO4,NO5,NO6,NO7,NO8,NO9] ordergetin true<span id='postcolor'>

Now, preview and ingame type 0-0-1 to launch the radio code alpha and watch the squad, they will all get in the chopper in cargo position

If you want someone to pilot the UH60 , you have to create a guy , name it , by example PILOT1 , edit its properties and in its init line put

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">PILOT1 assignasdriver HELICO<span id='postcolor'>

then for him , it is that code to order him to get in

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[PILOT1] ordergetin true<span id='postcolor'>

If you want a gunner for your UH60 with your pilot,

create another guy, link him (click on group or press F2 and create with your mouse a line between the 2 guys by pressing down your mouse button) to the PILOT1 guy to make a group of these two , then name the gunner GUNNER1 (for the example) and in its properties put this

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">GUNNER1 assignasgunner HELICO1<span id='postcolor'>

and the force get in code will be for these 2 guys

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[PILOT1,GUNNER1] ordergetin true<span id='postcolor'>

Note, you dont have to use a radio trigger, it is for my example, use the force get in codes depending of the mission you make.

I hope it helps

Note2 , by using false instead of true, they will leave the chopper

Note 3, if you want the chopper to move, you will have to create waypoints for the PILOT1 guy (then when he will get in the UH60 with the codes, he will try to follow his waypoints, and will make the UH60 launch and fly for this)

Share this post


Link to post
Share on other sites

If you got :

TEAM1=group this; "_x assignascargo HELICO" foreach units TEAM1

You can substitude :

[NO1,NO2,NO3,NO4,NO5,NO6,NO7,NO8,NO9] ordergetin true

by :

(units TEAM1) ordergetin true

and you don't need to name each soldier

Share this post


Link to post
Share on other sites

Thanks for this hint Bart.Jan , it is right that i have the tendency to name each of my soldiers because i play a lot with the "join" and "join grpnull" in my missions, and for lot of people there is no need.

So Cactus ,if you have no needs of the units name, use the code Bart.Jan gives here, it is more simple and have good efficiency too wink.gif

Share this post


Link to post
Share on other sites

Thanks for the help guys!

I don't know why it didn't work but I'll try your solutions. Been too long since I made any missions... :-)

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  

×