Jump to content
  • 0

Dayzmissions


sonikot

Question

Hello, anyone having a problem with the dayz missions cars blowing up when people get into them?

 

any help would be appreciated. 

 

 

http://opendayz.net/threads/release-dayzchernarus-mission-system.12169/

 

 

im sure it;s something to do with this code i dont know how to change it though

 

 

" if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

In server_cleanup.fsm

 

       "//Check for hackers" \n
       " {" \n
       " if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && !(vehicle _x in _safety) && (isPlayer _x)  && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n
       " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
       " (vehicle _x) setDamage 1;" \n
       " _x setDamage 1;" \n
       " };" \n
       " } forEach allUnits;" \n
       "" \n
 
In server_updateObject.sqf
 
if ((typeName _objectID != "string") || (typeName _uid != "string")) then
    diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
    //force fail
    _objectID = "0";
    _uid = "0";
};
if (_object getVariable "Mission" == 1) exitWith {};
if (!_parachuteWest and !(locked _object)) then {
if (_objectID == "0" && _uid == "0") then
{
_object_position = getPosATL _object;
    _isNotOk = true;
};
};

 

That should do it  ;)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...