Recording a Characters movements and actions to apply to a "Ghost" in the future.

I’ve been struggling with that type of code for a while, I manage to make it work several times but it always was framerate dependent.
so what I’m basically doing is getting the current “Get game time in seconds” to generate an index for my array, that was the only way I was able to get it frame rate independent.
there are still some issues with the code for example right now I’m recording in 30fps but as soon as the game runs lower than that the recording will stop.

BotRecorder.JPG
here is a pic of the code if download link is too suspicious for you :smiley: