How to turn off friction?

I want to turn off the friction the moment the character lands so that then if i immediately jump the character wont lose velocity. But the problem is I have no clue how to actually turn off the friction in c++. How would I do it and where would I do this? in the tick function?

Assuming you’re using the built-in (or inherited) ACharacter class, you should be able to access UCharacterMovementComponent by calling GetCharacterMovement() from the character.

Then you should experiment with these two properties:

BrakingDecelerationWalking

BrakingFrictionFactor

Basically you’ll need a TurnOffFriction() function that modify them into some small numbers, and a ResumeFriction() function to resume the properties.

See the documentation for more detail: