OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 08 May 2003, 06:46:49

Title: splitting groups and i waypoint issue
Post by: Tim Pink on 08 May 2003, 06:46:49
hi again

How do you split goups.
eg, if i have a group of 9 men and at a certain part of the mission i want units 3,5 and 9 to split from the main group and move of to perform a recon task.
how do i do it?

oh and if i had a mission where after the objective is achieved the move to extration poit waypoint shows up how would i do that and how do you make that work for multiple objectives, eg after youve killed three generals, the move to extration point waypoint appears

Title: Re:splitting groups and i waypoint issue
Post by: SimonRussi on 08 May 2003, 08:37:04
create a unit with the WPs you need for the "new" group. In this init write

newgroup = group this; delevehicle this

so you have the new group with WPs but the unit is deleted.

when you have to split you have to execute this (in a trig for example)

[unit3, unit5, unit9] join newgroup

To activate a "new" WP you have to create a trigger type SWITCH and group it with the WP before the one you want to activate. when the trig fires the new WP will be the actual one.

Anyway, these are maybe the most called q's, so searching the forum, FAQs and tutorials will explain everything  ;D

simon