Jump to content
lifeliner4

[urgent] helicopter ParkAtBasescript problem

Recommended Posts

Hi scripters!

I've got a question about a script.

In my mod, I've got 2 helicopters in the map, both Rescue Helicopters. (named the lifeliner1 and the lifeliner2)

They've got a VO, with name, and those 2 got a name two.

Nothing wrong with the alarmscript.

I chanced some thing, so the helicopters won't drive like a car, but flies.

But..

When I press ParkAtBase.. I've got a big problem, called:

1273150034-490.jpg

Many scripters helped me.. But, without a result..

But I know, there are some really good scripters, and they know the answer.. I hope..

This is the alarmscript:

http://plaatscode.be/139306/

This is the parkingscript:

http://plaatscode.be/139307/

Thank you! :cheers-mate:

Link to comment
Share on other sites

Guest Francis

Line 281 and 282 of your parking script causes it. It seems that landingDirection, which is a global game variable, cannot be set. Rename it to something else. You also forgot the "landing" bool parameter in the PushActionFlyTo. Your code should look like that.

lDirection = v.GetValidLandingAngle(&obje, parkpos);
Caller->PushActionFlyTo(ACTION_NEWLIST, parkpos, true, lDirection);

By the way, I dare you to indent your code next time.

Link to comment
Share on other sites

Guest Francis

1273202350-480.jpg

This is after I chanced the name IDirection, I thought, perhaps this is the answer.

But, still that error.

Script is like this now:

http://plaatscode.be/139309/

Thanks for your help btw, you're great! :happy:

Oops my bad, the real problem here is that you didn't declare it. On line 281, add "float" before your variable name.

float VUmc = v.GetValidLandingAngle(&obje, parkpos);

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