Epoch/Sources/epoch_code/gui/scripts/Epoch_secureStorageHandler.sqf
2016-06-13 11:54:19 -05:00

32 lines
751 B
Plaintext

/*
Author: Raimonds Virtoss - EpochMod.com
Contributors: Aaron Clark
Description:
TODO: DESC-TBA
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_secureStorageHandler.sqf
*/
private ["_out"];
params [["_in",false]];
_out = switch (typeName _in) do {
case "STRING":
{
if !(isNull dyna_cursorTarget) then {
dyna_cursorTarget getVariable ["EPOCH_Locked",false]
};
};
case "OBJECT":
{
[_in,(_in getVariable ["EPOCH_Locked",false]),player,Epoch_personalToken] remoteExec ["EPOCH_server_lockStorage",2];
true
};
default {false};
};
_out