mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dragging - Fix dragging ai turrets via keybind (#10267)
This commit is contained in:
parent
3b10396d3b
commit
c5fb3d4cb0
@ -19,6 +19,7 @@
|
||||
};
|
||||
|
||||
private _cursorObject = cursorObject;
|
||||
if (_cursorObject isKindOf "CaManBase" && {unitIsUAV _cursorObject}) then { _cursorObject = vehicle _cursorObject };
|
||||
|
||||
if (isNull _cursorObject || {(_cursorObject distance _player) > 2.6}) exitWith {false};
|
||||
if !([_player, _cursorObject] call FUNC(canDrag)) exitWith {false};
|
||||
@ -48,6 +49,7 @@
|
||||
};
|
||||
|
||||
private _cursorObject = cursorObject;
|
||||
if (_cursorObject isKindOf "CaManBase" && {unitIsUAV _cursorObject}) then { _cursorObject = vehicle _cursorObject };
|
||||
|
||||
if (isNull _cursorObject || {(_cursorObject distance _player) > 2.6}) exitWith {false};
|
||||
if !([_player, _cursorObject] call FUNC(canCarry)) exitWith {false};
|
||||
|
Loading…
Reference in New Issue
Block a user