Frictional Games Forum (read-only)

Full Version: [SOLVED] AutoSave() only works onEnter()?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a map with a few area scripts that do random crap and then try to AutoSave() after the scripts occur. However, whenever I die after the AutoSave() should have triggered, I respawn at the beginning of the map. I've looked through the Amnesia main maps, and it seems that AutoSave() is only called onEnter(). Is AutoSave() supposed to be able to work in the middle of a map? Is there a way I could make that happen so that right as I pick up a note or something, it saves my location?
Have you checked how it is in the Amnesia scripts? I'd do it myself, but it's not installed on this computer.
(01-26-2011, 04:30 AM)obstipator Wrote: [ -> ]I have a map with a few area scripts that do random crap and then try to AutoSave() after the scripts occur. However, whenever I die after the AutoSave() should have triggered, I respawn at the beginning of the map. I've looked through the Amnesia main maps, and it seems that AutoSave() is only called onEnter(). Is AutoSave() supposed to be able to work in the middle of a map? Is there a way I could make that happen so that right as I pick up a note or something, it saves my location?

You do know that you need PlayerStartAreas for this? Just checking.
I was indeed missing that. I added those, in conjunction with a CheckPoint() to tell it which PlayerStart to use next. Thanks for the help!