OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kingneb on 23 Apr 2003, 06:12:07

Title: unitname Land "land" command
Post by: kingneb on 23 Apr 2003, 06:12:07
How come the pilot does a sloppy job of landing.  The pilot prepares to set the chopper down on the ground but jerks up a few feet in altitude, cuts his engines, and gravity takes over, therefore damaging the chopper a little.  How do you get around this?
Title: Re:unitname Land "land" command
Post by: MadFred on 23 Apr 2003, 06:28:12
I never really noticed that before....I did notice just now in a small test that the helo cuts his engine just before it hits the ground.

maybe the helo jerks around when the ground underneath him isnt flat enough...dunno.

anyway I placed an invisible H on the spot and the helo landed somewhat better then without it..... I dont know if you are using the invisible H but if you are not then this is my suggestion.
Title: Re:unitname Land "land" command
Post by: _spitfire on 23 Apr 2003, 06:38:44
You could also try;

unitname Land "Get In";

that makes him keep his engines on and just hover a foot or so above the ground.  Don't know if that's appropriate for your needs, but it's another option.
Title: Re:unitname Land "land" command
Post by: Bad Maniac on 23 Apr 2003, 09:10:01
in the Units menu, under Empty / Objects there are two things called H and H (invisible). These are copter landing pads, place one centered EXACTLY where your landing waypoint is. If you want it to be a proper marked landing pad, choose a H, otherwise choose H (invisible) wich marks the place as a landing spot for the AI, but doesn't show up at all in the game. this works for me.

Also if you want it to land in somewhat rough terrain, make the speed in the last waypoint options "limited" this way the copter will fly in at a lower speed, and that makes it easier for the not so bright AI to land. ;)

(just clarifying MadFred ;D )
Title: Re:unitname Land "land" command
Post by: macguba on 23 Apr 2003, 10:56:57
In the last waypoint before landing you could also put

chopper1 flyInHeight 5

which might help too.   Experiment to get the right height.
Title: Re:unitname Land "land" command
Post by: Gumby on 02 May 2003, 20:12:00
I had the same problem, but i tried to use an action command called "land", but this didnt work..

Instead I made an ADDACTION    
referring to an *sqs, in which I had the command line

chopper land "land"
exit


Combined with at couple of Flyinheight lines you can create a nice landing...

If you have any knowledge on the use of  the action command, please contact me...... I am lost...