Saishy
06-20-2010, 06:23 PM
I'm doing a short trace to check if my pawn can perform a wall jump.
function bool DoWallJump( bool bUpdating )
{
local Vector HitLocation, HitNormal, End, Start;
local Actor HitActor;
Start = Location + (Vector(Rotation) * GetCollisionRadius());
End = Start + (Vector(Rotation) * 50);
HitActor = Trace(HitLocation, HitNormal, End, Start, false,);
/*if (HitActor == Level)
{
`Log("Imma WallJumpin");
}*/
//`Log(HitActor);
}
But the compiler don't accept "Level" in the if, but the Trace function says it can return "Level"...
D:
Edit: And the code is probably wrong too, cos this:
local Vector HitLocation, HitNormal, End, Start;
local Actor HitActor;
Start = Location + (Vector(Rotation) * GetCollisionRadius());
End = Start + Vector(Rotation) * 50;
HitActor = Trace(HitLocation, HitNormal, End, Start, false,);
`Log(HitActor);
Give me a warning, see the attachments.
function bool DoWallJump( bool bUpdating )
{
local Vector HitLocation, HitNormal, End, Start;
local Actor HitActor;
Start = Location + (Vector(Rotation) * GetCollisionRadius());
End = Start + (Vector(Rotation) * 50);
HitActor = Trace(HitLocation, HitNormal, End, Start, false,);
/*if (HitActor == Level)
{
`Log("Imma WallJumpin");
}*/
//`Log(HitActor);
}
But the compiler don't accept "Level" in the if, but the Trace function says it can return "Level"...
D:
Edit: And the code is probably wrong too, cos this:
local Vector HitLocation, HitNormal, End, Start;
local Actor HitActor;
Start = Location + (Vector(Rotation) * GetCollisionRadius());
End = Start + Vector(Rotation) * 50;
HitActor = Trace(HitLocation, HitNormal, End, Start, false,);
`Log(HitActor);
Give me a warning, see the attachments.