OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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.
-
Thanks KTottE!! Its finally working now! :)
I guess when I thought chopper I thought pilot instead of driver! :)
-
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
-
Thanks!! I finally have it working.
Amazing what you can do with scripting I learning! :)