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 (_chance < 50) then {
player removeMagazine "ItemMatchbox";
cutText ["Text" , "PLAIN DOWN"];};
_unit removeweapon "ItemMap";
_unit removeweapon "ItemCompass";
_unit removeweapon "ItemRadio";
private["_location","_isOk","_dir","_classname"];
_location = player modeltoworld [0,0.3,0];
if ((_location select 2) < 0) then {
_location set [2,0];
};
//_location set [2,0];
_isOk = true; //count (_location isFlatEmpty [0.3,0,0,4,0,false,player]) > 0;
_hasWood = "PartWoodPile" in magazines player;
_chance = floor(random 100);
if (_hasWood) then {
if (_isOk) then {
_dir = getDir player;
_classname = "Land_Fire_DZ";
player playActionNow "Medic";
sleep 6;
if (_chance > 40) then {
player removeMagazine "PartWoodPile";
dayz_hasFire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
dayz_hasFire setDir _dir;
player reveal dayz_hasFire;
cutText [localize "str_fireplace_01", "PLAIN DOWN"];
_id = _fire spawn player_fireMonitor;
} else {
if (_chance < 15) then {
player removeWeapon "ItemMatchbox";
cutText ["The attempt to ignite the fire fails. The matches are no longer usable." , "PLAIN DOWN"];
} else {
cutText ["The match breaks. You are not able to ignite the fire." , "PLAIN DOWN"];
};
};
} else {
cutText [localize "str_fireplace_02", "PLAIN DOWN"];
};
} else {
cutText [localize "str_player_22", "PLAIN DOWN"];
};