Reading the relic source code I tried to make a simple regeneration mutator. Since I don't add anything to the inventory, is there any cleanup required? Also, the Timer function does not seem to be called every second, or at all.
Code:
Class HpRegen extends Mutator;
function PostBeginPlay()
{
Super.PostBeginPlay();
Settimer(1.0, true);
}
function Timer()
{
if((Owner != None) && Owner.bIsPawn)
{
if(Pawn(Owner).Health < 100)
{
Pawn(Owner).Health = FMin(100, Pawn(Owner).Health +3);
}
}
Super.Timer();
}