Tripwire Interactive Forums

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
hey this is my code so far

class ZombieEmpathy extends Mutator;


function PostBeginPlay()
{
Super.PostBeginPlay();
SetTimer(1, true);

}

function Timer()
{

local KFHumanPawn Player;
local int enemydamage;

foreach DynamicActors(class 'KFHumanPawn', Player)
{

enemydamage = ( Player.HealthMax - Player.Health ) * 10;
Enemy.Damage(enemydamage);
}
}

defaultproperties
{
GroupName="KFEmpathyMut"
FriendlyName="Empathy Mut"
Description="Get the difference between your health and max health, multiply by 10, and do this damage to zeds every second."
}

i know that enemy isnt declared, but how do i make it so it damages all zombies in teh map?