@@ -24,27 +24,14 @@ SCRIPT(playerEvent);
24
24
private _unit = missionNamespace getVariable [" bis_fnc_moduleRemoteControl_unit" , player ];
25
25
private _vehicle = vehicle _unit ;
26
26
27
- private _controlledEntity = _unit ;
28
- if (! isNull getConnectedUAV _unit ) then {
29
- private _uavControl = UAVControl getConnectedUAV _unit ;
30
- _uavControl = _uavControl param [(_uavControl find _unit ) + 1 , " " ]; // Will be position STRING if actively controlling, or OBJECT if not.
31
- if (_uavControl isEqualTo " DRIVER" ) exitWith {
32
- _controlledEntity = driver getConnectedUAV _unit ;
33
- };
34
-
35
- if (_uavControl isEqualTo " GUNNER" ) exitWith {
36
- _controlledEntity = gunner getConnectedUAV _unit ;
37
- };
38
- };
39
-
40
27
// Unlike CBA_fnc_turretPath, this will return [-1] when player is driver
41
28
private _turret = _vehicle unitTurret _unit ;
42
29
43
30
private _state = [
44
31
_unit , group _unit , leader _unit ,
45
32
currentWeapon _unit , currentMuzzle _unit , currentWeaponMode _unit ,
46
33
getUnitLoadout _unit , _vehicle , _turret , _vehicle currentWeaponTurret _turret ,
47
- currentVisionMode _controlledEntity , cameraView
34
+ currentVisionMode focusOn , cameraView
48
35
];
49
36
50
37
if (_state isNotEqualTo GVAR(oldState)) then {
0 commit comments