tryteyker 28 Posted October 30, 2014 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
jshock 513 Posted October 30, 2014 Look up the lockDriver command, it may be of use. Share this post Link to post Share on other sites
tryteyker 28 Posted October 30, 2014 Unfortunately it doesn't prevent players from accessing the driver slot via the Terminal. Share this post Link to post Share on other sites
iceman77 19 Posted October 30, 2014 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
tryteyker 28 Posted October 30, 2014 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
Tajin 349 Posted October 30, 2014 You could loop this: https://community.bistudio.com/wiki/UAVControl to check if someone is connected as Driver. Then disconnect him with this: player connectTerminalToUAV objNull; Share this post Link to post Share on other sites
tryteyker 28 Posted October 30, 2014 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. 1 Share this post Link to post Share on other sites