Frictional Games Forum (read-only)
[SOLVED] AutoSave() only works onEnter()? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: [SOLVED] AutoSave() only works onEnter()? (/thread-6384.html)



[SOLVED] AutoSave() only works onEnter()? - obstipator - 01-26-2011

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?


RE: AutoSave() only works onEnter()? - Oscar House - 01-26-2011

Have you checked how it is in the Amnesia scripts? I'd do it myself, but it's not installed on this computer.


RE: AutoSave() only works onEnter()? - Frontcannon - 01-26-2011

(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.


RE: AutoSave() only works onEnter()? - obstipator - 01-26-2011

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!