Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
Countsporkulus

Here is a zombie humanity rewarder if anyone wants it!

Recommended Posts

I will post the script code below but all you have to do is paste into sqf file but might need a little change to your needs. This file is not 100% for sure to work but to help others get ideas.


[] spawn {
while {true} do {

//------------------------
//Sporks Zombie rewarder
//------------------------

_pos = getPos player;
_zombies = _pos nearEntities ["zZombie_Base",Zom];
_countZ = count _zombies;
_humanity = player getVariable["humanity",0];
humanityamountadded = 10; //the amount of humanity they gain.

for "_i" from 0 to (_countZ -1) do
{
_zombie = _zombies select _i;
if (!alive _zombie) then
{
player setvariable["humanity",_humanity+humanityamountadded,true];
};
};
//-------------------------------
//End of Sporks Zombie Rewarder
//-------------------------------

};
};

Edited by Countsporkulus
  • Like 1

Share this post


Link to post
Share on other sites

If it works that's a pretty sweet idea man, I like the idea of keeping the humanity amount low. Would it work making a variable for the 'super' zeds? double the humanity or something

Share this post


Link to post
Share on other sites
Sign in to follow this  

×