Use Epoch player_harvest instead of player_chopWood

This commit is contained in:
ebaydayz
2016-04-19 16:51:20 -04:00
parent ba480fb218
commit f0c46a0764
11 changed files with 30 additions and 56 deletions

View 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