-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added captive hotkey #5529
Added captive hotkey #5529
Changes from 1 commit
dd896f6
88c57fd
23cb52c
3ae7997
c91a724
af9a380
aeeedd1
a776da4
53c6858
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,22 @@ if (isServer) then { | |
|
||
if (!hasInterface) exitWith {}; | ||
|
||
//Add Keybind: | ||
["ACE3 Common", QGVAR(captives), [(localize LSTRING(KeyComb)), (localize LSTRING(KeyComb_description))], | ||
{ | ||
if !(cursorObject isKindOf "Man") exitWith {}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CAManBase |
||
|
||
if([ACE_player, cursorObject] call FUNC(canApplyHandcuffs)) exitWith { | ||
[cursorObject, true] call FUNC(setHandcuffed); | ||
}; | ||
|
||
if([ACE_player, cursorObject] call FUNC(canRemoveHandcuffs)) exitWith { | ||
[cursorObject, false] call FUNC(setHandcuffed); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What should I use instead of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @commy2 ? |
||
}; | ||
}, | ||
{false}, | ||
[59, [true, false, false]], true] call CBA_fnc_addKeybind; // Shift + Tilda (hold) | ||
|
||
["isNotEscorting", {!(GETVAR(_this select 0,GVAR(isEscorting),false))}] call EFUNC(common,addCanInteractWithCondition); | ||
["isNotHandcuffed", {!(GETVAR(_this select 0,GVAR(isHandcuffed),false))}] call EFUNC(common,addCanInteractWithCondition); | ||
["isNotSurrendering", {!(GETVAR(_this select 0,GVAR(isSurrendering),false))}] call EFUNC(common,addCanInteractWithCondition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many spaces. This comment is kind of superfluous anyways, it's seen immediately it's a keybind thing.