ACE3/addons/bft/functions/fnc_getEncryptionKey.sqf
2018-10-04 16:43:06 +02:00

24 lines
455 B
Plaintext

#include "script_component.hpp"
/*
* Author: Glowbal
*
* Description: Return the side specific encryption keys for the provided object or side string
*
* Arguments:
* 0: Side-String or Object <STRING> or <OBJECT>
*
* Return Value:
* Encryption Key <STRING>
*
* Public: No
*/
params ["_side"];
if (typeName _side == "OBJECT") then {
_side = str side _side;
};
missionNamespace getvariable [format[QGVAR(%1_encryptionKey), _side], [""]]