Audio Rejectz
Well-Known Member
So at present i have this, obviously im trying to have it so players dont need to download it. Probably going totally the wrong way about it, but hey...lol
Just for the sake of it i even tried to add to each spawn in the mission
and the ismeat.sqf
Still no luck
Code:
// Cut Meat From Dead
_X = false;
_inVehicle = ((vehicle player) != player);
if(!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4)) then {
_hasKnife = "ItemKnife" in items player;
_isMeat = cursorTarget getVariable["ismeat",false];
_isHarvested = cursorTarget getVariable["meatHarvested",false];
_isMan = cursorTarget isKindOf "Man";
_isAlive = alive cursorTarget;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
if(!_isAlive and _isMan and _hasKnife and !_isHarvested and _canDo and _isMeat) then {
_X = true;
if (s_player_butcher < 0) then {
s_player_butcher = player addAction ["Skinned", "\z\addons\dayz_code\actions\gather_meat.sqf",cursorTarget, 3, true, true, "", ""];
};
};
};
if(!_X) then {
if(s_player_butcher >= 0) then {
player removeAction s_player_butcher;
s_player_butcher = -1;
};
};
Just for the sake of it i even tried to add to each spawn in the mission
Code:
this AddEventHandler [""killed"",{_this execVM ""fixes\ismeat.sqf""}];";
and the ismeat.sqf
Code:
//sleep 10;
_man setVariable ["deadtime", time];
_man setVariable ["ismeat", true];
//_man setVariable ["flies", 0];
Still no luck