I've been trying to figure this out for 2 days.
I have the zupa single currency and have the "check Wallet" function added to selfactions. I also have a dead player journal that can be checked. The problem is that the dead player journal also shows up on dead zombies and AI
// CURSOR TARGET NOT ALIVE
if (!_isAlive) then {
// Gut animal/zed
if((_isAnimal || _isZombie) && _hasKnife) then {
_isHarvested = _cursorTarget getVariable["meatHarvested",false];
if (!_isHarvested) then {
_player_butcher = true;
};
};
// Study body
if ((_isMan || _isZombie) && !_isAnimal) then {
_player_studybody = true;
}
} else {
// unit alive
// gear access on surrendered player
if(_isMan && !_isZombie && !_isAnimal) then {
_isSurrendered = _cursorTarget getVariable ["DZE_Surrendered",false];
if (_isSurrendered) then {
_player_SurrenderedGear = true;
};
};
};
// Human Gut animal || zombie
if (_player_butcher) then {
if (s_player_butcher < 0) then {
if(_isZombie) then {
s_player_butcher = player addAction [localize "STR_EPOCH_ACTIONS_GUTZOM", "\z\addons\dayz_code\actions\gather_zparts.sqf",_cursorTarget, 0, true, true, "", ""];
} else {
s_player_butcher = player addAction [localize "str_actions_self_04", "\z\addons\dayz_code\actions\gather_meat.sqf",_cursorTarget, 3, true, true, "", ""];
};
};
} else {
player removeAction s_player_butcher;
s_player_butcher = -1;
};
// Study Body
if (_player_studybody) then {
if (s_player_studybody < 0) then {
s_player_studybody = player addAction [("<t color=""#FF0000"">"+("Check Wallet") + "</t>"), "custom\zsc\actions\check_wallet.sqf",_cursorTarget, 0, false, true, "",""];
s_player_studybody_2 = player addAction [("<t color=""#FF0000"">"+("Search") + "</t>"), "custom\DeadBodyJournal\DeadBodyJournal.sqf",_cursorTarget, 0, false, true, "",""];
};
} else {
player removeAction s_player_studybody;
s_player_studybody = -1;
player removeAction s_player_studybody_2;
s_player_studybody_2 = -1;
};
.
Could you help me out with this and maybe explain how whatever you do works, just so i can maybe learn a little something from this experience?
P.S. I have the check wallet function showing up on AI, Zombies, and players, and i want to keep it that way. Doesn't really matter if the journal stays on AI either, i just really dont want it on the zombies. If i could remove it from the AI, that would be great. DZAI and WAI