Jump to content
Justin Bottenbruch

Only make the UAV gunner Slot available

Recommended Posts

Following problem, I want to set a UAV that is flying arround a Location for Units on the Ground to use it as an Eye in the Sky. But I want them to only be able to Controll the Gunner/Camera so that they don't start messing arround with it.

I allready searched for a solution but didn't find one, it would be nice if someone has a way to accomplish this.

 

Share this post


Link to post
Share on other sites

You could try something like that:
 

{
  _x spawn {
    _plyr = _this;
    while {true} do {
      waitUntil {sleep 0.5; UAVControl UAV1 isEqualTo [_plyr,"DRIVER"]};
      _plyr action ["SwitchToUAVGunner", getConnectedUAV _plyr]
    }
  }
} forEach (playableUnits + switchableUnits);

where UAV1 is your uav

Share this post


Link to post
Share on other sites

To lock driver seat:

UAV1 lockDriver true;

To lock gunner seat:

UAV1 lockTurret [[0],true];

This prevents you from connecting to these positions.

  • Like 3

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

×