OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dmakatra on 14 Oct 2002, 21:30:58
-
IÂ'm making a single player mission, and needs help with this:
How do you create a unit or veichle in middle of a mission, I know you can do it becasue I could but I do not remeber it when I need it now :'(
thx in advance
-
there's two ways
"SoldierWB" CreateUnit [GetPos someplace, grouptojoin]
or
tank = "M1Abrams" CreateVehicle [9777,4080,0]
-
"SoldierWPilot" createUnit [getpos here, dummygroup,"soldier1=this"]
... that will give the unit the name of 'soldier1' ingame. Good if you need to delete this unit later.
Uhm - sorry to hijack topic, but doesn anyone know what the name of the 1st unit will be when i call the upper command 2 or more times ?
It seems the game changes the names dynamicly, only the last created soldier is named 'soldier1'. What are the other names ?
-
I think it would be soldier1_1
-
yup soldier1_1, 1_2, 1_3 and so on.
-
no it will just b unnamed again
u changed da value of soldier1 to da last soldier nd all da oders got unnamed
LCD OUT
-
thx for the help :cheers: