Files
armatak/addons/main/functions/extract_data/fn_extract_uuid.sqf
2025-07-16 12:46:12 -03:00

15 lines
343 B
Plaintext

// function name: armatak_fnc_extract_uuid
// function author: Valmo
// function description: Defines a random v4 uuid if the doesn't have one already
params["_unit"];
_uuid = _unit getVariable "_atak_uid";
if (isNil "_uuid") then {
_uuid = "armatak" callExtension ["uuid", []] select 0;
_unit setVariable ["_atak_uid", _uuid];
};
_uuid