OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ofp..hahha on 02 Sep 2002, 10:53:19

Title: Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: ofp..hahha on 02 Sep 2002, 10:53:19
Ok guys is there any way I could force the landing spot of a helo the thing acts like im not its boss.... He has some nerve landing over in his own little area!. so anyways ? anyone know?

but to be more specific i am using it in a script and i just dont want the helo to land that far away from the designated area.
Ps I know about the helo pads and stuff so bypass that part about putting a helo pad down its not that easy.

any help appreciated.
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: mikeb on 02 Sep 2002, 12:34:43
(resisting temptation to say "put helopad down")

I know there is the command:

heli land ""LAND"

....which lands the heli when you activate it in, say, a trigger.  Other possibilities for your problem are that the heli is moving too fast and overshoots a bit, sometimes causing him to land a distance away.  Try solving this by placing a few WPs before the landing point, which slows it down and/or changing the speed mode.  Also, make sure that the landing area is reasonably flat and has a reasonably clear airspace (not too close to buildings, trees, etc).  The AI can be quite observant about this and refuse to land if the ground is too steep, etc.

Otherwise just use an invisible H. Ooops.  Sorry!
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: Nixer6 on 02 Sep 2002, 16:48:44
What NAA US Marine said ;D

Speed and a couple of  close waypoints is definately important. It took me days once to figure out that one :o
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: ofp..hahha on 02 Sep 2002, 18:57:00
no no i can get the thing to land this is a script people
So Its still at what i had above.
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: toadlife on 02 Sep 2002, 21:54:38
I feel your pain. I'e had lots of grey hairs scripting helicopter landings.

You need to use the "move" command and the "unitready" command.

Lets say your helicopter is named "transport" invisible helipad is name "hpad1". Place a gamelogic unit about 200m from your helipad and name something like "heliwp1". You would need to make a script that looks something like this:

Code: [Select]
;tell the transport to move to the gamelogic
transport move getpos heliwp1

;wait until the heli is at its waypoint
@unitready transport

;set speedmode to limited and move to the helipad
transport setspeedmode "limited"
transport move getpos hpad1

;when the transport is ready, land at the helipad
@unitready transport
transport land "get in"

;when the transport is less than 10m off the ground, make sure it stays on the ground.
@(getpos transport select 2) < 10
transport flyinheight 0

...after this code is run your helicopter *should* be where you want it. You can sun what ever code you want (loading,unloading,ect.) and then have the transport take off again by doing:

Code: [Select]
transport flyinheight 50
transport move somewhere



Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: ofp..hahha on 02 Sep 2002, 23:37:45
Thanks Man I apprieciate it ;D

Anyways I was being dumb and was using doMove lol I must have been drunk.....

So thanks bye...

But will it ever be perfect?
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: ofp..hahha on 03 Sep 2002, 00:17:43
Ok i figured it out It Is as simple as this you CANNOT use the land command to get precise landings in so you just have to use flyin height Wooohooo..
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: toadlife on 04 Sep 2002, 07:48:16
While you can achive great control over units via scripting, may I suggest you check this thread out before going nuts with the .sqs files on choppers.

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=995

One of my missions I wrote was ENTIRELY scripted and allthough it turned out great and bug free, I probably could have saved tons of time (a month probably) by using more waypoints and triggers and less editpad.
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: MattE on 11 Sep 2002, 10:54:28
is there a way to get the higgens or any other transport boat to land troops in a exact location. I give em a waypoint they'll go to it then change course and land the troops else where.

cheers
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: Cedaie on 11 Sep 2002, 12:48:29
safe Mode, seting the Chopper and/or boats to Safe mode, whether mission builder waypoints or

this setbehaviour "safe"

this ALWAYS works, it gets em on the dot, I use this for cliff evacs ;)
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: Cedaie on 11 Sep 2002, 12:48:39
safe Mode, seting the Chopper and/or boats to Safe mode, whether mission builder waypoints or

this setbehaviour "safe"

this ALWAYS works, it gets em on the dot, I use this for cliff evacs ;)

Cheers ;D
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: BattleBorn on 18 Sep 2002, 13:45:58
hey hey, im new to the whole create ya own missions and stuff but im catchin on quickly ( i hope) well all i need to know is how to get a heli pad. so how do u get a helipad ?
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: Marsuitor on 18 Sep 2002, 16:02:31
Open the "Insert Unit" window.
Choose "empty" as side and "object" as class. It should be called H, or H (Invisible).

You must have inserted a player unit before you can choose "empty" as side, though.
Also, i'm not sure, but you might need the editor addons to make these two items available.
Title: Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
Post by: Sui on 19 Sep 2002, 01:31:59
Welcome to the forums, guys ;)