Need help with canibalism script

BetterDeadThanZed

Valued Member!
I am trying to install this script in Epoch 1.0.5.1: http://opendayz.net/threads/cannibalism.12218/

When I go to a dead body, I am not getting the option to gut the human even though I have a knife. In my client log I am getting this:

Code:
Error in expression <isAlive && !_isZombie && !_isAnimal && !_isHarvested && _isMan && _hasKnife && _>
  Error position: <_isHarvested && _isMan && _hasKnife && _>
  Error Undefined variable in expression: _isharvested
File mpmissions\__CUR_MP.namalsk\custom\fn_selfActions.sqf, line 1002

This is the code I'm using in my fn_selfactions:

Code:
    //####    Gut fools ####
    if (!_isAlive && !_isZombie && !_isAnimal && !_isHarvested && _isMan && _hasKnife && _canDo) then {
        if (s_player_butcher_human < 0) then {
            s_player_butcher_human = player addAction [format["Gut Human"], "custom\canibalize\gather_meat_human.sqf",cursorTarget, 0, false, true, "", ""];
        };
    } else {
        player removeAction s_player_butcher_human;
        s_player_butcher_human = -1;
    };

    //##############################

I've placed s_player_butcher_human = -1; in my variables.sqf with the other s_(etc) = -1; entries. This is the gather_meat_Human.sqf I am using: http://pastebin.com/ix3UzD6Q

Any suggestions would be appreciated.
 
Add this above the fn_selfaction code:
_isHarvested = _cursorTarget getVariable["meatHarvested",false];
 
Back
Top