Skip to content
View in the app

A better way to browse. Learn more.

Learn more

How would I...?

Featured Replies

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?

You could tell it to land on a building o somewehere it is impossible to land so it doesn't land.

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 116

Replace 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

I guess I will do the same, it adds a bit of realism :)

  • Author

Cheers Hoppah, will try it out later today. :)

----------

EDIT: Yep, works great. Thanks again.

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.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.