Protection Line Error

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

[FU2]SpawnKiller

New Member
Sep 13, 2003
26
0
0
www.1ultimatesnipingzone.com
How Should the 2 if lines be combined for this to work??


Code:
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

Every line of code elevates you
Jun 16, 2001
932
0
0
40
Inside the machine
Visit site
whoa, jesus.. um... i think this will work... but... egad, such a long If :p
Code:
if ((!bInstantHit(Killer, Killed)&&DamageType=='Shot')&&(!bAltInstantHit(Killer, Killed)&&DamageType=='Decapitated')&&Killed!=None&&Killer!=None&&Killed!=Killer)
 
Last edited: