OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gundernak on 04 Feb 2004, 18:46:57
-
Hi all,
I have a group.
sniper - leader
machinegunner (name: newgunner)
soldier
medic
UH60-MG (name: chopper01)
These are 6 soldiers.
I would like to start the mission with a deleted gunner in the heli, and a machine gunner to replace him.
In a script I tryed :
deleteVehicle gunner chopper01
newgunner moveInGunner chopper01
and I tryed to eject the original gunner as well.
Actually after both methods he reamins in the chopper.
The problem is I can not define the unit which I want to delete. Because 'gunner chopper01' does not represent him.
So how can I 'deleteVehicle' him?
thanks in advance
-
deleteVehicle chopper01g
Vehicle crews are automatically named by the game with the suffixes C for commander, G for gunner and d for driver.
-
Unsure if you can do this.
A solution could be to place an Empty Chopper, place a pilot unit and use pilot moveindriver chopper and newgunner moveingunner chopper.
:edit:
lol...as i see it is possible...
-
sorry Macguba I tryed this as well. Does not work...
anyway thanks
I thought about an empty chopper as well, but they are starting wiith flying above the sea...
That's why I can not use an empty vehicle.
-
hmmm...i used a lot choppers started flying.
try this:
create a empty chopper, make him start "flying", i'll use "chopper" as name for this example
create a pilot and in it's init field put:
this assignasdriver chopper; this moveindriver chopper
this should create a chopper flying at start.
the commands above work also for gunners (assignasgunner, moveingunner) as for cargo (assignascargo, moveincargo).
Not sure if a flyinheight command in the choppers init field would do something
-
OK emtpy chopper is working...
I do not know why I thought it will fall down at the beginning of the mission.
I remembered that, but this way something else...
thanks