Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (_damage < 1) then {
//diag_log format["OBJ: %1 - %2,%3,%4,%5,%6,%7,%8", _idKey,_type,_ownerID,_worldspace,_inventory,_hitPoints,_fuel,_damage];
dayz_nonCollide = ["DomeTentStorage","TentStorage","CamoNet_DZ"];
//Create it
_object = createVehicle [_type, _pos, [], 0, if (_type in dayz_nonCollide) then {"NONE"} else {"CAN_COLLIDE"}];
_object setVariable ["lastUpdate",time];
// Don't set objects for deployables to ensure proper inventory updates
if (_ownerID == "0") then {
_object setVariable ["ObjectID", str(_idKey), true];
} else {
_object setVariable ["ObjectUID", _worldspace call dayz_objectUID2, true];
};
_object setVariable ["CharacterID", _ownerID, true];
if (_object isKindOf "TentStorage" || _object isKindOf "CamoNet_DZ" || _object isKindOf "Land_A_tent") then {
_pos set [2,0];
_object setpos _pos;
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
};
_object setdir _dir;
_object setDamage _damage;
if (_damage < 1) then { // create object
// for tents: non colliding position
_entity = createVehicle [_class, _point, [], 0,
if (_class=="TentStorage") then {"NONE"} else {"CAN_COLLIDE"}
];
_entity setVariable ["ObjectID", _ObjectID, true];
_entity setVariable ["CharacterID", _CharacterID, true];
_entity setVariable ["lastUpdate",time];
_entity setDamage _damage;
if (_class == "TentStorage" || _class == "CamoNet_DZ") then {
_entity addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
};
//diag_log ("DW_DEBUG " + _class + " #" + str(_ObjectID) + " pos=" + (_point call fa_coor2str) + ", damage=" + str(_damage) );
}
else { // delete object -- this has been comented out: object are never really deleted from hive
/* _key = format["CHILD:306:%1:%2:%3:", _ObjectID, [], 1];
_rawData = "HiveEXT" callExtension _key;
_key = format["CHILD:304:%1:",_ObjectID]; // delete by ID (not UID which is handler 310)
_rawData = "HiveEXT" callExtension _key;*/
if (_damage < 1) then { // create object
// for tents: non colliding position
_entity = createVehicle [_class, _point, [], 0,
if (_class=="TentStorage") then {"NONE"} else {"CAN_COLLIDE"}
];
_entity setVariable ["ObjectID", _ObjectID, true];
_entity setVariable ["CharacterID", _CharacterID, true];
_entity setVariable ["lastUpdate",time];
if (_damage < 1) then { // create object
// for tents: non colliding position
_entity = createVehicle [_class, _point, [], 0,
if (_class=="TentStorage") then {"NONE"} else {"CAN_COLLIDE"}
];
_entity setVariable ["lastUpdate",time];
// Don't set objects for deployables to ensure proper inventory updates
if (_ownerID == "0") then {
_object setVariable ["ObjectID", str(_idKey), true];
} else {
_object setVariable ["ObjectUID", _worldspace call dayz_objectUID2, true];
};
_object setVariable ["CharacterID", _ownerID, true];
Dont know if its realated but I put weapon creates in bases on my server
for some reason, the server keeps deleting my weapon creates.
does this fix that?
hi guys...just wondered if you could poss help me out...ive recently installed taviana and am having problems with tents completely disappearing on restart, any chance of being pointed in the right direction......
I checked through posts and my code is basically the same as mentioned by kravok...ive check through deployables and itemtent is mentioned but land'a'tent isn't mentioned... as for safe_objects I cant see anything of that nature mentioned in variables..
I might have to do this as well.Hmmm, well I just checked and the older versions don't have a list of safe_objects so it's not that either. Your best bet would be to check the server RPT log when you try to place a tent. If it's not writing to the DB it must be having some problem that it's probably reporting in the log.