Hello, everyone. I'm making a mutator (vehicle) for ut3, and im trying to rewrite some stuff to make it work like a spacefighter (ambitious, i know.)
here's the issue: I keep getting this:
here's the problem area:Code:Bad or missing expression for token: deltatime in call to updaterotation2, parameter 1
any suggestions?Code:function PossessedBy (Controller C, bool bVehicleTransition) { super.PossessedBy(C, bVehicleTransition); // Don't start at full speed Velocity = EngineMinVelocity * Vector(Rotation); Acceleration = Velocity; UpdateRotation2( DeltaTime , PC); } function UpdateRotation2( float DeltaTime, PlayerController PC ) { local Rotator DeltaRot, newRotation, ViewRotation; //local PlayerController PC; ViewRotation = Rotation; DesiredRotation = ViewRotation; //save old rotation // Calculate Delta to be applied on ViewRotation DeltaRot.Yaw = PC.PlayerInput.aTurn; DeltaRot.Pitch = PC.PlayerInput.aLookUp; ProcessViewRotation( DeltaTime, ViewRotation, DeltaRot ); AirCraft.SetRotation(ViewRotation); PC.ViewShake( DeltaTime ); NewRotation = ViewRotation; NewRotation.Roll = Rotation.Roll; if ( AirCraft != None ) AirCraft.FaceRotation(NewRotation, Deltatime); }



Reply With Quote

Bookmarks