I want create inventory medkit that heal 25 health in time of 12.5 seconds. What I should write in funtion body?
Something like
Code: Select all
override void DoEffect()
{
int time;
time++;
if(time==2){time=0; owner.giveinventory(health, 1);/*not sure this works in zsript*/}
}
Code: Select all
override void Tick()
{
CVar bullet_time = CVar.GetInt('bullet_time_cvar');
CVar slow_mo = CVar.GetInt('slow_mo_cvar');
if(bullet_time =/=0 )
{
if(slow_mo==0) {return super.tick();}
else {tick*slow_mo}
}
Super.Tick();}