mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Captives - Use the doApplyHandcuffs function for keybind (#6843)
* Use the doApplyHandcuffs function that cabletie * Update XEH_postInit.sqf
This commit is contained in:
parent
c37b7644af
commit
ca71375259
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user