OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: vassili on 20 May 2003, 00:00:10

Title: how do you unattach a unit from a group?
Post by: vassili on 20 May 2003, 00:00:10
sorry if there is a really easy answer, but i couldn't work it out. Tis realy annoying when you want to put two units next to eachother and they join into a group.
Title: Re:how do you unattach a unit from a group?
Post by: macguba on 20 May 2003, 00:20:37
I think you are talking about when you place units in the Editor ... in which case it couldn't be easier.    Go into groups mode (F2) and drag and drop a line from one of them into empty space.    
Title: Re:how do you unattach a unit from a group?
Post by: Mr.BoDean on 22 May 2003, 15:19:53
I think you are talking about when you place units in the Editor ... in which case it couldn't be easier.    Go into groups mode (F2) and drag and drop a line from one of them into empty space.    


Since it was brought up ..... There is a JOIN WP, but no UNJOIN WP.   Is there a way to do that? Might solve a problem with my loading issue.
Title: Re:how do you unattach a unit from a group?
Post by: Iwesshome on 22 May 2003, 15:40:00
In the official and/or unofficial command reference there are join and unjoin groups commands.
Title: Re:how do you unattach a unit from a group?
Post by: Knut Erik on 22 May 2003, 15:54:35
In the official and/or unofficial command reference there are join and unjoin groups commands.

Wrong Macky there is no "UnJoin" command. Do it like this:

When you want a unit to join another:
[Man1] join YourLeader

You can have multiple units join the same leader in the same command:
[Man1,Man2,Man3,Man4] join YourLeader

**NOTE: You can't have more than 12 units in a group**

To "UnJoin" people:
[Man] join GrpNull

You can "UnJoin" multiple units in the same command:
[Man1,Man2,Man3,Man4] join GrpNull


That should cover it all  ;D
Title: Re:how do you unattach a unit from a group?
Post by: Mr.BoDean on 23 May 2003, 01:46:20
Thanx , Knut . I've been experimenting with this idea to solve my MP with AI heli problem.....see Preview VS. Real at:http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9698 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9698)

By assigning each individual unit their own WP's, I can synch them to the heli's Load and Tr.Unload WP's so it has to wait. Only negative is that if one or more units dies, there is a 20 second delay before liftoff .....no biggie.

Now how would I go about assigning WP's to an individual unit who joins a leader ....unjoins during a transport and joins a different leader later? How will I be able to assign the latter WP's??  I thought about putting a Join GrpNull command in a squad member's Init. line to unjoin him at start , but there will be a gap between first WP's and later ones.
   Should I just forget it and leave it, since it will be MP and I can just have AI join my group to command them?  :-\   ???  
Title: Re:how do you unattach a unit from a group?
Post by: Knut Erik on 23 May 2003, 14:16:26
Oh, oh, oh...
Sorry, but I can't see your problem  :-[
Can you please explain more?  :P :-[ :-[
Title: Re:how do you unattach a unit from a group?
Post by: Mr.BoDean on 24 May 2003, 07:33:18
Oh, oh, oh...
Sorry, but I can't see your problem  :-[
Can you please explain more?  :P :-[ :-[

I just had it all explained perfectly before it got deleted when I tried to preview and then hit the BACK button.  >:(  >:(  >:(  >:( :noo: :noo:  

So, I'll have to come back when I've cooled off
  :-\
Title: Re:how do you unattach a unit from a group?
Post by: Mr.BoDean on 24 May 2003, 08:46:42
Ok here goes again ....arrgggh.

It's a MP mission, so I want the option to enable AI due to shortage of good MP players.  However, if the Human leader boards a chopper before/without ordering his troops in, it will leave without them . Same for TransportUnload synched to group's GetOut WP. Leader is booted, others stay on and fly away. So I thought about making each of the squad members individual units or "Unjoining" them , but can't figure out how to give them WP's after they have been following their group's WP's.  I know there is a script for this problem, but couldn't get what I had to work.

This is my solution,so far:

AI units still in (human) leader's group  Init:mygrp=group this

When leader boards heli, AI units board via GetIn with Activation:"_x moveincargo MH6" foreach units mygrp

Heli WP's:

Load - GetIn

Move - Activation: UnassignVehicle P5; UnassignVehicle P6; UnassignVehicle P7; UnassignVehicle P8; MH6 FlyInHeight 10

Move - Activation: MH6 Land "Land"; MH6 FlyInHeight 0

Transport Unload - Activation: MH6 FlyInHeight 0  (With a 15 second timeout for Disembark orders)

Move - Activation: MH6 FlyInHeight 20

There is also a Triggered HINT reminding the leader to order troops to Disembark or be left behind.  (Trying to make it newbie-proof.)  The squad then MOVE to objective area and JOIN main leader.
 

 Seems the movein command really screws up WP's for AI.

This setup works fine with Human leader. I even played  a few times as one of the squad members with AI leader and all worked perfectly. Then subsequently my AI leader chose to just stand there and ignore his WP's or fire at static objects instead of the enemy AI, making him unreliable to lead an AI (or human) squad to a heli. WTH?

Any other suggestions? Thanks for the help!  :)