mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added handling of captivity when dragging/carrying (#9284)
This commit is contained in:
parent
1011b963bc
commit
f070e3ff30
@ -8,6 +8,16 @@ if (isServer) then {
|
||||
|
||||
_unit call FUNC(handleKilled);
|
||||
}];
|
||||
|
||||
// Handle surrending and handcuffing
|
||||
["ace_captiveStatusChanged", {
|
||||
params ["_unit", "_state"];
|
||||
|
||||
// If surrended or handcuffed, drop dragged/carried object
|
||||
if (_state) then {
|
||||
_unit call FUNC(handleKilled);
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
@ -74,8 +84,6 @@ if (isNil QGVAR(maxWeightCarryRun)) then {
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
//@todo Captivity?
|
||||
|
||||
//Add Keybind:
|
||||
["ACE3 Common", QGVAR(drag), (localize LSTRING(DragKeybind)), {
|
||||
if (!alive ACE_player) exitWith {false};
|
||||
|
Loading…
Reference in New Issue
Block a user