mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
see the below links for more info. uiSleep is based off of a more accurate method of tracking time, whereas sleep can fluctuate depending on application performance since it is based on framerate. https://community.bistudio.com/wiki/uiSleep https://community.bistudio.com/wiki/sleep_vs_uiSleep https://community.bistudio.com/wiki/sleep
18 lines
578 B
Plaintext
18 lines
578 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";
|
|
[1,1] call dayz_HungerThirst;
|
|
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"];
|
|
}; |