sah1510 Posted August 4, 2009 Report Share Posted August 4, 2009 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? Quote Link to comment Share on other sites More sharing options...
randomperson139 Posted August 4, 2009 Report Share Posted August 4, 2009 You could tell it to land on a building o somewehere it is impossible to land so it doesn't land. Quote Link to comment Share on other sites More sharing options...
Hoppah Posted August 4, 2009 Report Share Posted August 4, 2009 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 Quote Link to comment Share on other sites More sharing options...
Luisinho Posted August 5, 2009 Report Share Posted August 5, 2009 I guess I will do the same, it adds a bit of realism Quote Link to comment Share on other sites More sharing options...
sah1510 Posted August 5, 2009 Author Report Share Posted August 5, 2009 Cheers Hoppah, will try it out later today. ----------EDIT: Yep, works great. Thanks again. Quote Link to comment Share on other sites More sharing options...