Skip to content

Commit

Permalink
Captives - Use the doApplyHandcuffs function for keybind (#6843)
Browse files Browse the repository at this point in the history
* Use the doApplyHandcuffs function that cabletie

* Update XEH_postInit.sqf
  • Loading branch information
C0kkie authored and PabstMirror committed Mar 5, 2019
1 parent c37b764 commit ca71375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/captives/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca71375

Please sign in to comment.