Hello, I want to know that how can I get the location of my actor on last frame.
GetActorLocation gives me the current frame’s location so that I can compare both of their Zvalue and get the max heit it reached. is their a way I can do it?
You have to use a Vector to store your location at every frame, to compare it with another the next frame .
Make a var vector : OldLocation
For example we now use a tick event.
In the tick event , move your actor.
Then you can check and compare the NewLocation with the OldLocation.
After you made this , save your location in OldLocation.
At every frame you will have the current location by the node, and the previous location by your var OldLocation.
Be aware of how you build your blueprint.