mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Delete added trees after chopping down
Like 496681c, if a tree or plant was added with createVehicle it can be
deleted with deleteVehicle.
This commit is contained in:
@@ -105,13 +105,17 @@ if (!isNull _tree) then {
|
||||
format[localize "str_player_24_progress", _counter,_countOut] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
if (_proceed ||(_counter > 0) ) then {
|
||||
//remove vehicle, Need to ask server to remove.
|
||||
PVDZ_objgather_Knockdown = [_tree,player];
|
||||
publicVariableServer "PVDZ_objgather_Knockdown";
|
||||
//"Chopping down tree." call dayz_rollingMessages;
|
||||
//localize "str_player_25" call dayz_rollingMessages;
|
||||
};
|
||||
if (_proceed || (_counter > 0)) then {
|
||||
//localize "str_choppingTree" call dayz_rollingMessages;
|
||||
//localize "str_player_25" call dayz_rollingMessages;
|
||||
if (typeOf _tree == "") then {
|
||||
// Ask server to setDamage on tree and sync for JIP
|
||||
PVDZ_objgather_Knockdown = [_tree,player];
|
||||
publicVariableServer "PVDZ_objgather_Knockdown";
|
||||
} else {
|
||||
deleteVehicle _tree;
|
||||
};
|
||||
};
|
||||
if !(_proceed) then {
|
||||
localize "str_player_24_Stoped" call dayz_rollingMessages;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user