mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
468 B
Plaintext
26 lines
468 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
*
|
|
* Arguments:
|
|
* 0: Side <string>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_side", "_key"];
|
|
|
|
private ["_variableName", "_keys"];
|
|
|
|
_variableName = format[QGVAR(%1_encryptionKey), _side];
|
|
_keys = missionNamespace getvariable [_variableName, []];
|
|
if !(_key in _keys) then {
|
|
_keys pushback _key;
|
|
missionNamespace setvariable [_variableName, _keys];
|
|
publicVariable "_variableName";
|
|
};
|