Prevent duplicate objectUIDs

See #1504 for the details
This commit is contained in:
ebaydayz
2016-02-24 12:31:13 -05:00
parent 9bbeb1e43e
commit ff4a227a1d
5 changed files with 19 additions and 4 deletions

View File

@@ -49,8 +49,6 @@ if (_spawnDMG) then {
};
};
// TODO: check if uid already exists && if so increment by 1 && check again as soon as we find nothing continue.
//Send request
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, _damage , _characterID, _worldspace, [], _array, _fuel,_uid];
diag_log ("HIVE: WRITE: "+ str(_key));