Captives - Use the doApplyHandcuffs function for keybind (#6843)

* Use the doApplyHandcuffs function that cabletie

* Update XEH_postInit.sqf
This commit is contained in:
C0kkie 2019-03-05 16:40:10 +01:00 committed by PabstMirror
parent c37b7644af
commit ca71375259

View File

@ -44,7 +44,7 @@ if (!hasInterface) exitWith {};
if ((_target distance ACE_player) > getNumber (configFile >> "CfgVehicles" >> "CAManBase" >> "ACE_Actions" >> "ACE_ApplyHandcuffs" >> "distance")) exitWith {false};
if ([ACE_player, _target] call FUNC(canApplyHandcuffs)) exitWith {
[QGVAR(setHandcuffed), [_target, true], _target] call CBA_fnc_targetEvent;
[ACE_player, _target] call FUNC(doApplyHandcuffs);
true
};
false