PDA

View Full Version : Protection Line Error


[FU2]SpawnKiller
14th Sep 2003, 04:17 PM
How Should the 2 if lines be combined for this to work??


function bool PreventDeath(Pawn Killed, Pawn Killer, name damageType, vector HitLocation)
{
if ( !bInstantHit(Killer, Killed) && DamageType == 'Shot' && Killed != None && Killer != None && Killed != Killer )
if ( !bAltInstantHit(Killer, Killed) && DamageType == 'Decapitated' && Killed != None && Killer != None && Killed != Killer )
{
LastKiller = Killer;
LastVictim = Killed;
SetTimer(0.01, False);
Killed.Health = Killed.default.Health;
Super.PreventDeath(Killed, Killer, DamageType, HitLocation);
return true;
}

return Super.PreventDeath(Killed, Killer, DamageType, HitLocation);
}


Thanks

EvilDrWong
14th Sep 2003, 04:30 PM
whoa, jesus.. um... i think this will work... but... egad, such a long If :P

if ((!bInstantHit(Killer, Killed)&&DamageType=='Shot')&&(!bAltInstantHit(Killer, Killed)&&DamageType=='Decapitated')&&Killed!=None&&Killer!=None&&Killed!=Killer)

[FU2]SpawnKiller
14th Sep 2003, 05:43 PM
thanks a lot just cannot seem to get those correct here

lol

thanks a bunch