Need Help - UDN Rotation Lock

1 post

Flag Post

Hello! I’m a game design student stumped on how to make a pawn lock on rotation. We’re creating a game that’s a top down/space shooter (think Galaga) and we’re stumped on a bit of code that we can’t seem to get work. Any assistance would be great!

Code snippet below:

class BFPlayerController extends UDKPlayerController;
var BFPawn OurPlayer;

function UpdateRotation( float DeltaTime )
local Rotator DeltaRot, ViewRotation;

DeltaRot.Yaw = 0; DeltaRot.Pitch = 0; ProcessViewRotation( DeltaTime, ViewRotation, DeltaRot );