-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify JoinGroup action to show group name (#5287)
* Modify JoinGroup action to show group name * header * Header
- Loading branch information
1 parent
ace3964
commit 5f779c4
Showing
3 changed files
with
28 additions
and
0 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
26 changes: 26 additions & 0 deletions
26
addons/interaction/functions/fnc_modifyJoinGroupAction.sqf
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,26 @@ | ||
/* | ||
* Author: PabstMirror | ||
* Modifies the ACE_JoinGroup action to show group name. | ||
* | ||
* Arguments: | ||
* 0: Target <OBJECT> | ||
* 1: Player <OBJECT> | ||
* 2: Args <ANY> | ||
* 3: Action Data <ARRAY> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* [cursorObject, player, [], []] call ace_interaction_fnc_modifyJoinGroupAction | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
|
||
params ["_target", "_player", "", "_actionData"]; | ||
|
||
private _actionText = format ["%1: %2", localize LSTRING(JoinGroup), groupID group _target]; | ||
TRACE_3("",_target,group _target,_actionText); | ||
|
||
_actionData set [1, _actionText]; |