Jump to content
Sign in to follow this  
tryteyker

Disable UAV Driver control

Recommended Posts

Hi,

just a quick question that I can't find the answer to; is it possible to disable the driver control of a UAV specifically? I've got a static UAV up in the air and don't want players to take control of the driver (because it's useless, the UAV is locked in place), but rather only the gunner.

Share this post


Link to post
Share on other sites

Look up the lockDriver command, it may be of use.

Share this post


Link to post
Share on other sites

Unfortunately it doesn't prevent players from accessing the driver slot via the Terminal.

Share this post


Link to post
Share on other sites

Maybe use cutText to terminate the display after you've checked which type of UAV it is ( or isn't ). Assuming players go into some sort of "uav mode" screen, display etc.

Share this post


Link to post
Share on other sites

Don't really know the display numbers for the GUI though, but I'm sure something can be done along those lines.

Share this post


Link to post
Share on other sites

Yeah, that worked out. Thanks!

End Result:

           [_afrwedd] spawn {
           // == Looping UAV Control, to prevent player getting into driver seat.
           while {alive player && taskState (_this select 0) == "Assigned"} do {
               _drone = ciadrone;
               _ctrl = UAVControl _drone;
               _seat = _ctrl select 1;
                   if (_seat == "driver") then {
                       player connectTerminalToUAV objNull;
                       titleText ["ACCESS DENIED TO DRIVER SEAT - GUNNER ONLY","PLAIN"];
                   };
           };
           };

Bonus shitty formatting because forum doesn't like backspace.

  • Like 1

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  

×