mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Admin can choose vanilla, classic epoch or classic epoch dark. dayz_hungerThirst was replaced with dayz_NutritionSystem
18 lines
602 B
Plaintext
18 lines
602 B
Plaintext
private["_location","_isOk","_dir","_classname"];
|
|
_location = player modeltoworld [0,1,0];
|
|
_location set [2,0];
|
|
_isOk = count (_location isFlatEmpty [0.5,0,0,4,0,false,player]) > 0;
|
|
|
|
if (_isOk) then {
|
|
_dir = getDir player;
|
|
_classname = "Land_Fire";
|
|
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
|
player playActionNow "Medic";
|
|
uiSleep 6;
|
|
dayz_hasFire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
|
dayz_hasFire setDir _dir;
|
|
player reveal dayz_hasFire;
|
|
cutText [localize "str_fireplace_01", "PLAIN DOWN"];
|
|
} else {
|
|
cutText [localize "str_fireplace_02", "PLAIN DOWN"];
|
|
}; |