I love it when morons take other scripts and say they are their own. This is a modified takinstan life pot harvesting code, the only difference is instead of it being an proximity activation he just made it a right click on knife option.....
cutText [format["You need to be near the weed plants in order to gather."], "PLAIN DOWN"];
};
if (_hempqty > 2) exitWith {
cutText [format["WARNING: %1, You have maximum amount of weed in your inventory! You could get arrested by the police ;)", name player], "PLAIN DOWN"];
};
if (dayz_combat == 1) then {
cutText [format["You are in Combat and Cannot Gather the Weed."], "PLAIN DOWN"];
} else {
disableSerialization;
_gearmenu = FindDisplay 106;
_gearmenu CloseDisplay 106;
player playActionNow "Medic";
r_interrupt = false;
sleep 6;
_objectID = _weed getVariable["ObjectID","0"];
_objectUID = _weed getVariable["ObjectUID","0"];
deleteVehicle _weed;
[_objectID,_objectUID] call server_deleteObj;
_weed setDamage 1;
player addMagazine "ItemKiloHemp";
sleep 2;
cutText [format["You've Gathered Some Weed! Smoke that shit or sell it at Black market dealer!!"], "PLAIN DOWN"];
[TUTORIAL] Harvestable hemp, smoking weed, pot farms.
in A2: Epoch Mods (1.0.5.1)
Posted
I love it when morons take other scripts and say they are their own. This is a modified takinstan life pot harvesting code, the only difference is instead of it being an proximity activation he just made it a right click on knife option.....
Seriously are people that dumb....
/*
put together for DayZ Epoch
Credits to Shogun338 from Insurrection gaming
modified for separate "gather weed" script
*/
private ["_gearmenu","_playerPos","_nearWeed","_weed","_objectID","_objectUID"];
_playerPos = getPosATL player;
_hempqty = {_x == "ItemKiloHemp"} count magazines player;
_nearWeed = count nearestObjects [_playerPos, ["fiberplant"], 4] > 0;
_weed = nearestObject [player, "fiberplant"];
if !(_nearWeed) exitWith {
cutText [format["You need to be near the weed plants in order to gather."], "PLAIN DOWN"];
};
if (_hempqty > 2) exitWith {
cutText [format["WARNING: %1, You have maximum amount of weed in your inventory! You could get arrested by the police ;)", name player], "PLAIN DOWN"];
};
if (dayz_combat == 1) then {
cutText [format["You are in Combat and Cannot Gather the Weed."], "PLAIN DOWN"];
} else {
disableSerialization;
_gearmenu = FindDisplay 106;
_gearmenu CloseDisplay 106;
player playActionNow "Medic";
r_interrupt = false;
sleep 6;
_objectID = _weed getVariable["ObjectID","0"];
_objectUID = _weed getVariable["ObjectUID","0"];
deleteVehicle _weed;
[_objectID,_objectUID] call server_deleteObj;
_weed setDamage 1;
player addMagazine "ItemKiloHemp";
sleep 2;
cutText [format["You've Gathered Some Weed! Smoke that shit or sell it at Black market dealer!!"], "PLAIN DOWN"];
};