OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ice Man 3:16 on 26 Apr 2004, 00:33:14

Title: Changing Pilot
Post by: Ice Man 3:16 on 26 Apr 2004, 00:33:14
Quick question that i couldn't find by searching.... how do you change the pilot of a plane to not be a pilot unit so he is a soldier unit?

I have a plane in flight  in this mission i am working on but i need the pilot to be a west soldier unit insted of a pilot.
Title: Re:Changing Pilot
Post by: myke13021 on 26 Apr 2004, 00:53:00
instead of putting a "WEST" or "EAST" plane in the editor, put an "EMPTY" plane, then put the type of unit you want to have as pilot and in its init field type in:

Code: [Select]
this assignasdriver nameofplane; this moveindriver nameofplane
and voila..theres your plane with a new pilot ;D
Title: Re:Changing Pilot
Post by: Ice Man 3:16 on 26 Apr 2004, 01:56:16
sweet!! that works perfect!! thanks man :)

 :cheers: cheers