if (Format ["%1",FUNCTION_ASSIGN_ID] == "scalar bool array string 0xfcffffef") then { UNITS_LIST = []; UNIT_ANIMATION_LIST = []; FUNCTION_ASSIGN_ID = { if (!(_this in UNITS_LIST)) then { UNITS_LIST set [count UNITS_LIST, _this]; UNIT_ANIMATION_LIST set [count UNIT_ANIMATION_LIST, ""]; } }; FUNCTION_SETANIM = { private ["_id"]; _id = UNITS_LIST find (_this select 0); if (_id >= 0) then {UNIT_ANIMATION_LIST set [_id, _this select 1]}; }; FUNCTION_GETANIM = { private ["_id"]; _id = UNITS_LIST find (_this select 0); if (_id >= 0) then {UNIT_ANIMATION_LIST select _id} else {""} }; }; true