Home   Help Search Login Register  

Author Topic: Ofp random problem (Chopper landing)  (Read 1066 times)

0 Members and 2 Guests are viewing this topic.

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Ofp random problem (Chopper landing)
« on: 16 Apr 2005, 11:22:54 »
This might belong to advanced section.

I have made following cutscene: Choppers fly and land on top of the flat house roofs. Then men on top of them board the choppers.

Problem is, that sometimes the choppers miss the roof by 10-15 metres. I don't mean they fly over it, (I scripted to prevent that) but they fly by the side of it... Then if I restart ofp, and it works again.

I'm very sure it's because of OFP internal random system.... My questions are: Is there a way to fix this, or can I ask the player to just restart OFP and watch the cutscene again if it bugs?

Thanks...

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Ofp random problem (Chopper landing)
« Reply #1 on: 16 Apr 2005, 11:31:22 »
i had a similar problem. my solution was to a) stick an H there, invisible or otherwise, and b) get the chopper to pause at the waypoint just before landing for about 10 seconds. that way there's no momentum which could create the miss you describe. my choppers now land on a sixpence ;)

StonedSoldier

  • Guest
Re:Ofp random problem (Chopper landing)
« Reply #2 on: 16 Apr 2005, 13:06:49 »
i got them to land on rooftops by a mixture of invisible Hs and fiddleing with the velocity of the chopper

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Ofp random problem (Chopper landing)
« Reply #3 on: 17 Apr 2005, 06:04:59 »
Yeah, I also use velocity scripting (_dir = [chop,roof]call Epl_GetRelDir; [sin _dir,cos _dir,velocity chop select 2])... but I made it activate when the chopper is five metres away. That will give good effect... but If it misses the roof, then it doesn't activate and to make a timing sequence to activate it would screw the thing those times the chopper works okay...

and I tried by setting hold waypoint by the building and nothing after that. Didn't work... And it wouldn't setPos the HeliH above the ground... And I know that placing a H will make chopper land on top of it ;), but not with buildings...

And waypoints are abit out of the question as I find it a lot easier to make scripted movement (doMove).....