Update fn_getModelName.sqf

Made by @Victor-the-Cleaner
This commit is contained in:
A Man
2022-05-21 10:48:12 +02:00
parent ac4a56d0b5
commit 754ae1c4ad

View File

@@ -1,6 +1,6 @@
local _model = "";
if (!isNull _this) then {
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"