OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SteveIII on 19 Jun 2004, 14:32:10

Title: Vehicles, custom drivers/gunners
Post by: SteveIII on 19 Jun 2004, 14:32:10
How can I insert a vehicle, but choose a non standard unit to be in the driver and gunner seat? Sorry if it's a simlpe question, I just hate tutorials! ;)
Title: Re:Vehicles, custom drivers/gunners
Post by: MachoMan on 19 Jun 2004, 14:40:46
Create an empty vehicle "x",

Create unit "a",
Create unit "b",

Code: [Select]
a moveInDriver x
b moveInGunner x
Title: Re:Vehicles, custom drivers/gunners
Post by: Dubieman on 19 Jun 2004, 16:50:26
There is also these commands you can use.


a moveincommander x

a moveincargo x

For choppers, the pilot is considered the driver so use moveindriver for pilots, a gunner is just moveingunner.
Title: Re:Vehicles, custom drivers/gunners
Post by: DBR_ONIX on 20 Jun 2004, 11:57:57
Yeah, either place an empty vehicle, or a full one, name it something (I used carname) and put in it's init field :
Code: [Select]
deletevehicle driver this
And if it has a gunner :
Code: [Select]
deletevehicle gunner this

To put new people in it, place them in the editor, in the drivers init field :
Code: [Select]
this moveindriver carname
And if it has a gunner :
Code: [Select]
this moveingunner carname

And that should be it

BTW, the init field only shows up in advanced mode (Which I reccomend you use all the time anyway ;))

Sorry if you know half this stuff, but you didn't say how much you knew about ofp :)

Gd luck
- Ben