OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: British_Steel on 29 Sep 2005, 22:54:41
-
how do i delete units and group connections once ive placed them?
i really dont know, i can get the hang of most of the map editer, exept deleting stuff like units and groupings
please help
-
Say a unit is called east1 you can delete it by:
deleteVehcile east1
If you have a group called Grpname (put Grpname = group this in the init field of one of the units in the group)
Then delete all the units of the group by:
{deleteVehicle _x} forEach units Grpname
To remove a unit called east1 from a group:
east1 join GrpNull
-
where do you type it?
-
You can put it in the activation field of a trigger, you can put it in the activation field of a waypoint or you could put it in a script.
-
Is it just me, or do you want to know something more simple British_Steel? :)
To remove the blue lines, select group mode (F2) and drag the blue line of any grouped unit into nowhere to ungroup them.
To delete units move the mouse over them and press delete on the keyboard.
-
In the Mission Editor:
To ungroup a unit from his group, click on Groups (F2?) and drag and drop a blue line from him into nowhere space.
To delete a unit, put the mouse pointer on top of it and press the Delete key on your keyboard.
To delete a whole bunch of units, drag and drop around them to select them, then press the Ctrl and x keys together.
THobsons answers are correct if you want these things to happen in the middle of a mission.
Head over to the Editors Depot (link at the top of this page) and macguba's guide to mission editing for beginners. And some of the other tutorials in the Getting Started section. ;)
Oh, and
Welcome to the forum!
*sigh* too slow again.
-
To delete a whole bunch of units, drag and drop around them to select them, then press the Ctrl and x keys together.
technically, what that is doing is "cutting" them which means if you hit ctrl + v they'll be back again
if you want to ungroup units via a trigger or script etc. use:
[unit1,unit2,unit3,etc] join grpnull
and now those units have broken off of their existing groups to make a new one
-
This reminds me of a conversation I had the other day with one of my daughters. She has just started driving lessons. I asked if she was practicing three point turns and reversing round corners. She said err.. no... I am practicing starting the engine, turning left and turning right!
Re-reading the question I see that Trapper you are right. I have forgotten how undocumented the mission editor is.