OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BrAinOfJ on 03 May 2003, 16:02:17
-
How do i ungroup a unit ?
or, how do i start units "in cargo" without having them grouped to the vechicle
eg. a group of soldiers start the mission in an apc. the apc arrives at its "unload" waypoint, and the units get out. Then i want the soldier group to move on without the apc.
-
to make a unit not in a group, select groups (i believe its F2) and left click on the unit you want to be "ungrouped" and drag the little line thing so its not over a unit, then letgo of the left mouse button.
-
You can start units in cargo of any vehicle without having them grouped to it. Write this in their init's field:
unitname moveincargo vehiclename
-
Hey m8 :D here's how ya throw a pack of morons into the trunk of some vehicle :thumbsup:
If it's a group, and the vehicle is NOT part of this group, simply put the following in the INIT field of one group member ( I use the team leader but ya don't have 2 ) :
Grp1=Units Group This; "_x moveinCargo Truck1" foreach Grp1
There! :-*
And to kick 'em out:
"[_x] orderGetin false" foreach Grp1
or alike.
-
ok, they both sound good, the bottom 1 sounds like less work.
i assume "grp1" is the name of the group... how do i name a group ?
-
I just told ya how! :D the INIT field of any moron in the group (init = "initialisation" )
morons = units group this
that's the INIT code to name a group!
And then to tell the grp to do whatever:
"_x setdammage 0.99" foreach morons
simple as that, m8 :-* 8)