fixes issues with wall disappearing on restart?

This commit is contained in:
[VB]AWOL
2013-09-03 13:59:49 -05:00
parent 2283536283
commit db1af13257
2 changed files with 10 additions and 4 deletions

View File

@@ -100,10 +100,13 @@ if (_proceed) then {
dayzDeleteObj = [_objectID,_objectUID]; dayzDeleteObj = [_objectID,_objectUID];
publicVariableServer "dayzDeleteObj"; publicVariableServer "dayzDeleteObj";
// sleep a bit to make sure delete happens before create
sleep 1;
// Publish variables // Publish variables
_object setVariable ["CharacterID",_objectCharacterID,true]; _object setVariable ["CharacterID",_objectCharacterID,true];
_object setVariable ["ObjectID",_objectID,true];
_object setVariable ["ObjectUID",_objectUID,true]; //_object setVariable ["ObjectUID",_objectUID,true];
_object setVariable ["OEMPos",_location,true]; _object setVariable ["OEMPos",_location,true];
dayzPublishObj = [_objectCharacterID,_object,[_dir,_location],_classname]; dayzPublishObj = [_objectCharacterID,_object,[_dir,_location],_classname];

View File

@@ -107,6 +107,9 @@ if ((count _upgrade) > 0) then {
dayzDeleteObj = [_objectID,_objectUID]; dayzDeleteObj = [_objectID,_objectUID];
publicVariableServer "dayzDeleteObj"; publicVariableServer "dayzDeleteObj";
// sleep a bit to make sure delete happens before create
sleep 1;
if (_lockable == 3) then { if (_lockable == 3) then {
_combination_1 = floor(random 10); _combination_1 = floor(random 10);
@@ -123,8 +126,8 @@ if ((count _upgrade) > 0) then {
// Publish variables // Publish variables
_object setVariable ["CharacterID",_objectCharacterID,true]; _object setVariable ["CharacterID",_objectCharacterID,true];
_object setVariable ["ObjectID",_objectID,true];
_object setVariable ["ObjectUID",_objectUID,true]; //_object setVariable ["ObjectUID",_objectUID,true];
_object setVariable ["OEMPos",_location,true]; _object setVariable ["OEMPos",_location,true];
dayzPublishObj = [_objectCharacterID,_object,[_dir,_location],_classname]; dayzPublishObj = [_objectCharacterID,_object,[_dir,_location],_classname];