OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gimboid364 on 16 Dec 2004, 19:55:19

Title: Grouping
Post by: gimboid364 on 16 Dec 2004, 19:55:19
Can anyone tell me how make a group split up? I have a group which starts the mission in a helicopter and the helicopter is part of the group. I want the heli to land and unload and to fly off somewhere else, and the infantry to go a different way. Can anyone help me?
Title: Re:Grouping
Post by: THobson on 16 Dec 2004, 20:04:27
Firstly, do you really need to have them all start in the same group?  If you do you can get the heli to leave the infantry group by getting it to join grpNull as follows

[heliname] join grpNull

Title: Re:Grouping
Post by: gimboid364 on 16 Dec 2004, 20:18:05
im not sure how i can make the units start in the heli without it being grouped with them
Title: Re:Grouping
Post by: Tomasz on 16 Dec 2004, 20:18:57
I also had this problem some time ago, when I started making missions. By trial and error ( I didnt know about OFPEC at that time  :'( ) I found out that if you place a WP Get In for the group, and synchronize it with the WP move of the helicopter ( which is in a different group = alone ), they will load into the helicopter. Now if u place a WP for the heli to Unload Transport and WP move somewhere else, you will have what you want. The infantry group will then follow their next WP.

Tomasz
Title: Re:Grouping
Post by: gimboid364 on 16 Dec 2004, 20:22:07
yeah thanks i think that works ;D
Title: Re:Grouping
Post by: Triggerhappy on 16 Dec 2004, 21:33:42
im not sure how i can make the units start in the heli without it being grouped with them

have the group seperate, then put this in the leaders init:
"_x moveincargo chopper" foreach units group this
Title: Re:Grouping
Post by: THobson on 16 Dec 2004, 23:49:00
Quote
WP Get In for the group, and synchronize it with the WP move of the helicopter
Better would be to use a Load WP for the chopper.

The moveincargo command is much better if you just want to have them start in the chopper.  

Have a look at the commands available. Click on Editors Depot, Online References, Commands.  Then just read through it all to get an overview of what sorts of things are possible