Files
DayZ-Epoch/SQF/dayz_code/compile/fn_getModelName.sqf
A Man 754ae1c4ad Update fn_getModelName.sqf
Made by @Victor-the-Cleaner
2022-05-21 10:48:12 +02:00

14 lines
363 B
Plaintext

local _model = "";
if (!isNull _this && {!(_this isKindOf "Man")}) then {
local _array = toArray (str _this);
local _begin = (_array find 58) + 2; // ": "
local _end = (_array find 46) + 3; // ".p3d"
local _array2 = [];
for "_i" from _begin to _end do {
_array2 set [count _array2, _array select _i];
};
_model = toLower (toString _array2);
};
_model