I need to know if my pawns groundspeed is between specific values.
How do I code it to work out if it's between 0 and 180 for example??
At the moment I've tried this and it doesn't work:
How do I code it to work out if it's between 0 and 180 for example??
At the moment I've tried this and it doesn't work:
Code:
if (Pawn.GroundSpeed >=0 && <=180) { UDNPawn(Pawn).AimBlend.SetBlendTarget(1, 0.05); } else if(Pawn.GroundSpeed >=180 && <= 350) { UDNPawn(Pawn).AimBlendWalking.SetBlendTarget(1, 0.05); } else if(Pawn.GroundSpeed >=350 && <=900) { UDNPawn(Pawn).AimBlendRunning.SetBlendTarget(1, 0.05); }
Comment