Jump to content
Sign in to follow this  
Tankbuster

auto canceling autohover

Recommended Posts

In this thread I asked for this feature and didn't get it.

The biki is a mine of useful information... oh wait, no, it isn't, but luckily, shay_gman on that thread has a working example that I adapted. My thanks to him.

Now, I realise that my admitting to using autohover is rather like me saying Sion Lenton is a jolly nice chap, but it's out in the open now - without autohover, I'm a mess in a helicopter.

My comrades get annoyed if I get out of an aircraft, leaving AH on. Using the code below as an eventhandler placed on the arircraft, AH will be turned off when a someone gets in.

this addEventHandler ["GetIn", "player action ['AutoHoverCancel', vehicle player]"];

Further blah in spoiler.

Originally, I worked this using GetOut, but it didn't work. GetIn, I think has the advantage that the aircraft will be local to the pilot and so, the script can be run on clients, avoiding the locality pitfalls. Basically, although the EH exists on the aircraft, once a pilot gets in, it becomes local to the player, so we can use 'player action'.

I think it will work in multiplayer. I've only tested it in SP and am stapling it to my clan MP mission now. Fingers crossed. :)

Edited by Tankbuster

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×