So, messing with my mod again, and I've come into a bit of a pickle. Short story short - I need to measure the speed of a plane at the moment it crashes into water. Now, obvious method is to use GetVelocity(), but game's engine cheekily stops all the motion at the moment of impact (or, well, at least that's what I managed to gather, as all I get from this function in this case are zeroes). A workaround for that (albeit a sh*tty one) is to measure speed at OnKilled (while the plane is still soaring majestically through the skies, only slightly on fire and in half), but the problem with that is that I need to use the measured speed in another function - OnImpact.
Since these functions happen at different times, is there a way to store the measurement from one function somewhere, and then call it back from the other function when needed? Preferably without adding additional arguments to functions. That self.Trash thing looked promising, but not only I don't know how it functions, I'm also not sure if it works with real numbers.