(03-22-2013, 09:14 PM)TexMex Wrote: Hey, I need some help with my story, or the scripting for my story. The problem is that i need the map to restart when the player dies but i cant figure out how to do this, i tried to put a checkpoint in the beginning of the story but then the player already had the knife (after he died) that was supposed to teleport him when he picked it up.
So do anyone know how to restart the map when the player dies?
Thanks for all help
I don't know how exactly your story evolves, but you need some trigger to restart the story. For example a collide callback, that will make the script restart. If you can follow me? Any trigger will do. There is no function like Restart(), you have to use the engine script to reset it all as it was at the beginning. It all depends on what your story's content is.