Home   Help Search Login Register  

Author Topic: Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!  (Read 2247 times)

0 Members and 1 Guest are viewing this topic.

ofp..hahha

  • Guest
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.
« Last Edit: 02 Sep 2002, 12:08:12 by NAA Us Marine »

mikeb

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #1 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!

Offline Nixer6

  • Members
  • *
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #2 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
Why do I have to be a Rocket Scientist to make a good mission?

ofp..hahha

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #3 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.
« Last Edit: 02 Sep 2002, 18:59:18 by NAA Us Marine »

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #4 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



"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

ofp..hahha

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #5 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?
« Last Edit: 03 Sep 2002, 00:11:19 by NAA Us Marine »

ofp..hahha

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #6 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..

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #7 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.
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

MattE

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #8 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

Cedaie

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #9 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 ;)

Cedaie

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #10 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

BattleBorn

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #11 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 ?

Marsuitor

  • Guest
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #12 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.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Land Here Not There. Force Landing Spot!!!!!!!!!!!!!!!
« Reply #13 on: 19 Sep 2002, 01:31:59 »
Welcome to the forums, guys ;)