-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fa1f6e
commit 74f4366
Showing
6 changed files
with
99 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// private _fnc_scriptName = "TRGM_GLOBAL_fnc_removeAceActionFromObject"; | ||
params ["_action", "_object"]; | ||
format[localize "STR_TRGM2_debugFunctionString", _fnc_scriptName, _fnc_scriptNameParent, (["Client", "Server"] select isServer)] call TRGM_GLOBAL_fnc_log; | ||
|
||
private _existingActions = _object getVariable ["TRGM_addedAceActions",[]]; | ||
|
||
if(_action in _existingActions) then { | ||
[_object, 1, ["ACE_SelfActions", (_action select 0)]] remoteExec ["ACE_interact_menu_fnc_removeActionFromObject", [0, -2] select isDedicated, true]; | ||
_existingActions deleteAt (_existingActions find _action); | ||
_object setVariable ["TRGM_addedAceActions", _existingActions]; | ||
}; | ||
|
||
true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// private _fnc_scriptName = "TRGM_GLOBAL_fnc_removeAceActionFromPlayer"; | ||
params ["_action"]; | ||
format[localize "STR_TRGM2_debugFunctionString", _fnc_scriptName, _fnc_scriptNameParent, (["Client", "Server"] select isServer)] call TRGM_GLOBAL_fnc_log; | ||
|
||
if !(hasInterface) exitWith {}; | ||
|
||
private _existingActions = player getVariable ["TRGM_addedAceActions",[]]; | ||
|
||
if(_action in _existingActions) then { | ||
[player, 1, ["ACE_SelfActions", (_action select 0)]] call ACE_interact_menu_fnc_removeActionFromObject; | ||
_existingActions deleteAt (_existingActions find _action); | ||
player setVariable ["TRGM_addedAceActions", _existingActions]; | ||
}; | ||
|
||
true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters