mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Update fn_getModelName.sqf
Made by @Victor-the-Cleaner
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
local _model = "";
|
local _model = "";
|
||||||
|
|
||||||
if (!isNull _this) then {
|
if (!isNull _this && {!(_this isKindOf "Man")}) then {
|
||||||
local _array = toArray (str _this);
|
local _array = toArray (str _this);
|
||||||
local _begin = (_array find 58) + 2; // ": "
|
local _begin = (_array find 58) + 2; // ": "
|
||||||
local _end = (_array find 46) + 3; // ".p3d"
|
local _end = (_array find 46) + 3; // ".p3d"
|
||||||
|
|||||||
Reference in New Issue
Block a user