OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Lt.Marshall on 05 Jan 2003, 21:41:20

Title: changing characters in vehicles?
Post by: Lt.Marshall on 05 Jan 2003, 21:41:20
I'm a n00b to editing, so I have two questions.  How do you change the player model inside a vehicle? Let's say I want a Law Soldier to drive a jeep instead of the default model, how would I do it?  

Also, how can I make a chopper touch down, unload its cargo and touch off quickly?  Thanks a lot.
Title: Re:changing characters in vehicles?
Post by: Kaliyuga on 05 Jan 2003, 21:53:30
1)  Easiest way:     make an empty jeep instead,  give it a name in the editor....  make a LAW soldier... type this in his init field:

this moveindriver jeepname

where jeepname is whatever you designated the jeep as in the editor..

 The commands;    moveingunner and moveincommander can be used the same way for all vehicles.....   with a pilot being considered a 'driver'

2) Choppers can be tricky that's for sure...
but try simply using an  unload cargo waypoint for starters..
 followed by another after it...  if you're the commander, then you'll still have to tell your guys to disembark, but if it's all AI, they should hop out themselves.... ;)

 You can also take a look through the ed depot for any useful scripts anyone has written for quick landings.. seems to me there are one or two I can think of that have been done at least.. ;)

 


Title: Re:changing characters in vehicles?
Post by: Lt.Marshall on 05 Jan 2003, 21:55:45
thanks A LOt, that reallt helped.
Title: Re:changing characters in vehicles?
Post by: Lt.Marshall on 05 Jan 2003, 22:03:13
Oh, but how can you make it so he is the driver or gunner?
Title: Re:changing characters in vehicles?
Post by: Captain Winters on 05 Jan 2003, 22:19:53
Lt. These are all of the moveIn commands! I belive they are quite explanitory. if you don't understand them ask me again and I'll explain them!  ;D ;)

<unitname> moveInCargo <vehiclename>
<unitname> moveInDriver <viehlcename>
<unitname> moveInGunner <veihclename>

I believe that's all of 'em!
________________________________________________
________________________________________________
Capn' Winters Out!