Navmesh and animation


I am trying to do a blender script ( to a animator and the idea is to make a simulation and save it as a animation, I am using the nav mesh with game blender engine, but I don’t know how to save it as a animation. What is the best way to do this?