- 0
Dead Player Journal on dead zombies
-
Similar Content
-
[Release] Vehicle Service Point (Refuel, Repair, Rearm) [Updated for 1.0.7] 1 2 3 4 5
By salival,
- repair
- briefcases
- (and 7 more)
- 114 replies
- 23448 views
-
- 3 replies
- 2358 views
-
[RE-RELEASE, v1.2] 'fn_SC_uniCoins' dev function for Single Currency (rewritten and updated for Epoch 1.0.6.1+)
By iben,
- single currency
- zsc
- (and 2 more)
- 4 replies
- 1808 views
-
Trader Item Files (Default Currency/Single Currency)
By JohnnyBravo666,
- default currency
- single currency
- (and 1 more)
- 6 answers
- 1685 views
-
[Single Currency Banking] What Files Are Altered In The dayz_server folder?
By DY357LX,
- zupa
- dayz_server
- (and 2 more)
- 5 replies
- 1641 views
-
- Advertisement
Question
chi
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
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now