Jump to content
sah1510

How would I...?

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...