Jump to content
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×