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.
//Set the Time
...
...
setDate _date;
dayzSetDate = _date;
publicVariable "dayzSetDate";
diag_log ("TIME SYNC: Local Time set to " + str(_date));
};
private ["_unit","_variable","_arraytosend","_owner","_vehicle","_qty"];
//Inbound [_unit,"PVCDZ_hlt_Transfuse",[_unit,player,1000]]
_unit = _this select 0;
_variable = _this select 1;
_arraytosend = _this select 2;
_owner = owner _unit;
//diag_log format ["%1, %2, %3, %4", _unit, _variable, _arraytosend, _owner];
//execution
switch (_variable) do {
case "VehHandleDam": {
_vehicle = _arraytosend select 0;
if (local _vehicle) then {
_arraytosend call fnc_veh_handleDam;
} else {
PVCDZ_veh_SH = _arraytosend;
_owner publicVariableClient "PVCDZ_veh_SH";
};
};
case "SetFuel": {
_vehicle = _arraytosend select 0;
_qty = _arraytosend select 1;
if (local _vehicle) then {
_vehicle setFuel _qty;
} else {
PVCDZ_veh_SetFuel = _arraytosend;
_owner publicVariableClient "PVCDZ_veh_SetFuel";
};
};
... REST OF FILE DELETED ... YOU GET THE IDEA ....