August 4, 200917 yr comment_92238 Hi folks, Just a quick question. When a police officer calls on air support the police helicopter lands at the area it has been called to. I can understand this for the Air Ambulance, but not the police helicopter. Am I able to change any scripts to ensure the helicopter stays in the air when called? And if so, could anyone direct me as to what I should be doing? Report
August 4, 200917 yr comment_92246 You could tell it to land on a building o somewehere it is impossible to land so it doesn't land. Report
August 4, 200917 yr comment_92300 Open the script LACallHelicopter.script with NotePad and find the following code float landingDirection = n.GetValidLandingAngle(&obj, CmdPos); if (landingDirection >= 0.f) { n.PushActionFlyTo(ACTION_APPEND, CmdPos, true, landingDirection); } else { n.PushActionFlyTo(ACTION_APPEND, CmdPos, false, -1.0f); }Lines 109 to 116Replace that whole code with this line: n.PushActionFlyTo(ACTION_APPEND, CmdPos, false, -1.0f);Test it. If that works you might want to do the same thing for lines 178 to 185.Hoppah Report
August 5, 200917 yr Author comment_92399 Cheers Hoppah, will try it out later today. ----------EDIT: Yep, works great. Thanks again. Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.