how to make addMovementInput work for child APawn class?

I read in the documentation that Base Pawn classes won’t automatically apply movement, it’s up to the user to do so in a Tick event. I didn’t find any guides for this. Can anyone here tell me how to implement this?

if you know how to apply movement to character,

just add the UPawnMovementComponent class to your Pawn

the instance of the UPawnMovementComponent you called will work basically same as GetCharacterMovement() in Character class