Static class variable, inside a pawn, persistence question

Hey - I’m still fairly new to c++ oop and I was wondering that if I declare a static variable inside the pawn’s .h, what are the rules governing its persistence?

Let’s say I have this static var modified inside an overridden tick function, to keep track of old velocity for various movement reasons in the pawn cpp. Is this ‘safe’? Does the variable persist until the pawn instance is destroyed in the level/world?

Thanks!

A C++ static variable’s value is initialized when the engine starts up, will persist as long as the engine continues running. So, its value won’t be affected by instances being created or destroyed.

Thank you!

What about Open Level? I know it destroys and reset most of objects in UE.