mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Use Epoch player_harvest instead of player_chopWood
This commit is contained in:
17
SQF/dayz_code/compile/fn_getModelName.sqf
Normal file
17
SQF/dayz_code/compile/fn_getModelName.sqf
Normal file
@@ -0,0 +1,17 @@
|
||||
private ["_i","_k","_lenInfo","_objInfo","_objName"];
|
||||
|
||||
_objInfo = toArray(str(_this));
|
||||
_lenInfo = count _objInfo - 1;
|
||||
_objName = [];
|
||||
_i = 0;
|
||||
// determine where the object name starts
|
||||
{
|
||||
if (58 == _objInfo select _i) exitWith {};
|
||||
_i = _i + 1;
|
||||
} count _objInfo;
|
||||
_i = _i + 2; // skip the ": " part
|
||||
for "_k" from _i to _lenInfo do {
|
||||
_objName set [(count _objName), (_objInfo select _k)];
|
||||
};
|
||||
_objName = toLower(toString(_objName));
|
||||
_objName
|
||||
Reference in New Issue
Block a user