Consequence
New Member
I'm trying to get the admintools working with DayZ 1.8, but I'm having trouble with vehicles exploding and killing you even if you are in god mode.
I think the problem lies in the server_updateObject.sqf. In 1.8 the segment that needs changing looks like this:
I have tried changing it to prevent vehicles from being cleaned or exploding with these changes. My syntax or something else must be wrong.
If anyone can point out what I'm doing wrong, it will be greatly appreciated!
I think the problem lies in the server_updateObject.sqf. In 1.8 the segment that needs changing looks like this:
Code:
if (!_parachuteWest) then {
if ((typeOf _object) in SafeObjects) then {
} else {
if (_objectID == "0" && _uid == "0") then
{
_object_position = getPosATL _object;
#ifdef OBJECT_DEBUG
diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
typeOf _object,
_object_position select 0,
_object_position select 1,
_object_position select 2]);
#endif
_isNotOk = true;
};
};
};
I have tried changing it to prevent vehicles from being cleaned or exploding with these changes. My syntax or something else must be wrong.
Code:
if (!_parachuteWest) then {
if ((typeOf _object) in SafeObjects) then {
} else {
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] !=1)) then
{
_object_position = getPosATL _object;
#ifdef OBJECT_DEBUG
diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
typeOf _object,
_object_position select 0,
_object_position select 1,
_object_position select 2]);
#endif
_isNotOk = true;
};
};
};
If anyone can point out what I'm doing wrong, it will be greatly appreciated!