Epoch/Sources/epoch_code/gui/scripts/Epoch_secureStorageHandler.sqf

19 lines
358 B
Plaintext
Raw Normal View History

2015-10-28 15:16:00 +00:00
_in = param [0,false];
_out = switch (typeName _in) do {
case "STRING":
{
if !(isNull dyna_cursorTarget) then {
dyna_cursorTarget getVariable ["EPOCH_Locked",false]
};
};
case "OBJECT":
{
2015-12-23 17:38:11 +00:00
[_in,(_in getVariable ["EPOCH_Locked",false]),player,Epoch_personalToken] remoteExec ["EPOCH_server_lockStorage",2];
2015-10-28 15:16:00 +00:00
true
};
default {false};
};
_out