OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CptBravo on 06 Oct 2002, 18:59:54

Title: Help with pilot script plz
Post by: CptBravo on 06 Oct 2002, 18:59:54
Hi,
I'm new to OFP and I am learning (attempting anyway) to learn about scripting.

I am trying to get a pilot to move into heli as soon as his base is attacked. I have tried using:  UnitName moveindriver VehicleName. It won't let me change the driver into pilot though! SO is there another command for moving pilots into empty choppers??

Thanks
Title: Re:Pilot move in script help please!!
Post by: KTottE on 06 Oct 2002, 19:34:04
Ah, what are you talking about?

If you do

UnitName MoveInDriver VehicleName

and VehicleName is the name of an empty helo he will become the pilot.
Title: Re:Pilot move in script help please!!
Post by: CptBravo on 07 Oct 2002, 05:04:11
Thanks KTottE!! Its finally working now! :)
I guess when I thought chopper I thought pilot instead of driver! :)
 
Title: Re:Help with pilot script plz
Post by: Guru on 13 Oct 2002, 02:22:41
as for the part about moves to chopper when dudes attack use a trigger set to east/west detected by otherside.in the triggers init: put->    dudesname moveindriver "choppername"
oh and set trigger size to cover all ur dudes and out to a distance u want em to be able to detect enemy IE:500-600 yrds out around ur base. ;D then he wont go to chopper till enemy attacks but will still do whatever u want till trigger is setoff
Title: Re:Help with pilot script plz
Post by: CptBravo on 13 Oct 2002, 05:20:16
Thanks!! I finally have it working.
Amazing what you can do with scripting I learning! :)