How to call GetCharacterMovement() in one line?

Hello everyone, is it possible to write this code in one line.

GetCharacterMovement()->bUseControllerDesiredRotation = false;
GetCharacterMovement()->bOrientRotationToMovement = true;

I don’t wan’t to call GetCharacterMovement two times.

Thank You.

Hi Alexa.kl,

GetCharacterMovement() gets compiled into just the pointer anyway, so it’s not slow.

Ok, Thank You to confirm it , I were thinking it could be expensive/slow.
Thank You very much