Home   Help Search Login Register  

Author Topic: 2 groups in 1 heli  (Read 585 times)

0 Members and 1 Guest are viewing this topic.

dragonshinobi03

  • Guest
2 groups in 1 heli
« on: 01 Sep 2003, 11:13:38 »
Hi how do i make 2 groups get in the same chopper.

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:2 groups in 1 heli
« Reply #1 on: 01 Sep 2003, 13:03:41 »
Depends on how you want to do it. :) Here's some suggestions:

First place a copter and give it waypoints. Then I'll explain what to do along the way.

1)
In the copters properties, take away all it's fuel.
If the chopper starts from the ground then add a trigger which is activated by anyone and then put this in the condition field:

Code: [Select]
this && ({_x in copter} count units grp) >= (count units grp) && ({_x in copter} count units grp2) >= (count units grp2)
copter is the name of the copter. ::) :P  grp and grp2 are the groups names that should enter the copter. You can change the names of them if you wish. ;) Then in the on activation of the trigger put:

Code: [Select]
copter setfuel 1
This will make the copter lift off.

2)
If the copter is in the air, then you could do this.

Give the chopper a waypoint to the location you want it to pick up the squad. Then lock the copters waypoint and also execute the following script:
[] exec "wait.sqs"

And the script should look something like this:

Code: [Select]
copter flyinheight 1
@({_x in copter} count units grp) >= (count units grp) && ({_x in copter} count units grp2) >= (count units grp2)
copter lockWP FALSE
copter flyinheight 35
exit

You can also do that with triggers, but I just wanted to do this one fast. ;D
Once the script is done, the copter will move on to the next waypoint. Assuming you have made one for it. ;)
Never tried this myself, but in theory this should work. ;D If you're having probs then don't hesitate to ask. ;)

Hawkins
« Last Edit: 01 Sep 2003, 13:12:25 by Hawkins »

Offline rhysduk

  • Former Staff
  • ****
Re:2 groups in 1 heli
« Reply #2 on: 01 Sep 2003, 23:13:38 »
Or use a CHINOOK ;D
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

fragsta

  • Guest
Re:2 groups in 1 heli
« Reply #3 on: 01 Sep 2003, 23:36:24 »
its so much easier:

make 2 groups, and a chinook (called "ch1") which is in neither of the groups. For every unit in each group type in the init fields:

Code: [Select]
this moveincargo "ch1"
and there u have it. in fact it is easier than that u can just copy and paste the init fields into each unit, and the chinook can be at any height u want.

Offline Ottie

  • Members
  • *
  • And you think this is personal
Re:2 groups in 1 heli
« Reply #4 on: 02 Sep 2003, 17:04:21 »
or type this in the init fields of the group leaders is much easier

"_x moveInCargo ch1" forEach unit group this
« Last Edit: 02 Sep 2003, 17:05:13 by Ottie »
If you can't beat them, buy them