mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add player build plant handle when harvest a plant
This commit is contained in:
@@ -61,7 +61,14 @@ if !(isNull _plant) then {
|
|||||||
PVDZ_objgather_Knockdown = [_plant,player]; // Ask server to setDamage on plant and sync for JIP
|
PVDZ_objgather_Knockdown = [_plant,player]; // Ask server to setDamage on plant and sync for JIP
|
||||||
publicVariableServer "PVDZ_objgather_Knockdown";
|
publicVariableServer "PVDZ_objgather_Knockdown";
|
||||||
} else {
|
} else {
|
||||||
deleteVehicle _plant;
|
local _ownerPUID = _plant getVariable ["ownerPUID","0"];
|
||||||
|
|
||||||
|
if ((_ownerPUID != "0") && {_type in DZE_Plants}) then { // Makes sure the plant is an acutal player built object and no map addtion
|
||||||
|
PVDZ_obj_Destroy = [netID player,netID _plant, dayz_authKey];
|
||||||
|
publicVariableServer "PVDZ_obj_Destroy";
|
||||||
|
} else {
|
||||||
|
deleteVehicle _plant;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
if (_groundDrop) then {
|
if (_groundDrop) then {
|
||||||
format[localize "str_success_gathered",_text,(_i-_j),_j,_text] call dayz_rollingMessages;
|
format[localize "str_success_gathered",_text,(_i-_j),_j,_text] call dayz_rollingMessages;
|
||||||
|
|||||||
Reference in New Issue
Block a user