mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
take 2
This commit is contained in:
@@ -384,14 +384,16 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Packing my tent
|
//Packing my tent
|
||||||
if(_isTent) then {
|
if(_isTent and (player distance _cursorTarget < 3)) then {
|
||||||
if (_ownerID == dayz_characterID) then {
|
if (_ownerID == dayz_characterID) then {
|
||||||
if ((s_player_packtent < 0) and (player distance _cursorTarget < 3)) then {
|
if (s_player_packtent < 0) then {
|
||||||
s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",_cursorTarget, 0, false, true, "",""];
|
s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",_cursorTarget, 0, false, true, "",""];
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if ((s_player_packtent < 0) and (player distance _cursorTarget < 3)) then {
|
if(("ItemJerrycan" in _magazinesPlayer) and ("ItemMatchbox_DZE" in weapons player)) then {
|
||||||
s_player_deleteBuild = player addAction [format[localize "str_actions_delete",_text], "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, true, true, "", ""];
|
if (s_player_packtent < 0) then {
|
||||||
|
s_player_packtent = player addAction [format[localize "str_actions_delete",_text], "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, true, true, "", ""];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user