Home   Help Search Login Register  

Author Topic: Chopper stays in sky  (Read 1476 times)

0 Members and 1 Guest are viewing this topic.

Offline Yasirotta

  • Members
  • *
Chopper stays in sky
« on: 27 Aug 2008, 12:37:36 »
I have chopper whit 8 men group inside. Pilot, and gunner isn't at same group than those 8 dudes. Player isn't member of group or chopper crew. When trigger is activated, chopper runs to transport unload waypoint. Group has Get out waypoint in same location, and those are syncronised. Problem is, that chopper gets to that waypoint, but doesn't land. It stays still about 20 or 30 meters high, and no-one can't get out. How to solve this ?

Offline Kendo J

  • Members
  • *
  • Britain Has more varieties of cheese than France
Re: Chopper stays in sky
« Reply #1 on: 27 Aug 2008, 14:07:12 »
Change the waypoint to transport-unload (unload is for units in the helos group)
place an invisible H and put the transport-unload waypoint on top of it.... if you add a new waypoint (double click) ontop of the H it will work better


Put this in the waypoint activation field of the helo

HELONAME land "LAND"

* "LAND" (complete stop)
* "GET IN" (hovering very low, for another unit to get in)
* "GET OUT" (hovering low,for another unit to get out)

for me "getout" never really works use "LAND"

also add to the line for get out waypoint of infantry
commandGetOut _x foreach units groupname
OR
unassignVehicle _x foreach units groupname (not sure if this is correct syntax)

I think the unassgin is best. I use it in my missions for helos but as I don't have MY PC near me right now I can't tell you the right syntax. I am not a natural scripter, but if you send me a PM I will get that script for you...

Regards
Kendo

Offline Luke

  • Members
  • *
  • Thank God! The OFPEC Staff are here!
Re: Chopper stays in sky
« Reply #2 on: 28 Aug 2008, 01:31:20 »
you can also try helo1 flyinheight 0.

Luke
Pesky Human!!
Wort Wort Wort.

Offline Kendo J

  • Members
  • *
  • Britain Has more varieties of cheese than France
Re: Chopper stays in sky
« Reply #3 on: 28 Aug 2008, 11:47:32 »
The correct syntax of my previous post is

"unassignvehicle _x" foreach units groupname

remember to name your group...
add this to leaders init line
Groupname1 = group this

The group name can be anything by the way... just not group or unit stuff like that

The problem with "helo flyinheight 0" is that it has to be reset and the helo will ALWYAS fly at the height you tell it to, default is 50 metres... It can look good if you set the flyinheight to 15 or 20 during approach so it comes in low to its LZ....

Kendo

Offline Yasirotta

  • Members
  • *
Re: Chopper stays in sky
« Reply #4 on: 28 Aug 2008, 15:24:37 »
Ok.

What if i want make 3 groups, each whit 3 members. Then, group1 would get off at town1 and group2 to town2 and so on.
Just make every landing place that land "LAND" command ? Does it confuse if there is 3 diffrent "LAND" commands ?

Offline Kendo J

  • Members
  • *
  • Britain Has more varieties of cheese than France
Re: Chopper stays in sky
« Reply #5 on: 29 Aug 2008, 11:41:41 »
It depends... choppers can be tricky, it can be scripted to do exactly what you want. Or if i am guessing by your question it is done by way-points yes it should be ok

Just make sure each group is named and they have "unassignvehicle _x" foreach units groupname1, for first way-point and "unassignvehicle _x" foreach units groupname2 for second etc.....

you may have to change the helo flyinheight, for after each landing, then again you might not...

Kendo

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Chopper stays in sky
« Reply #6 on: 02 Sep 2008, 16:26:57 »
_this setFuel 0 is another way to meet mother earth!
urp!