ZDoom Line Specials

15:Autosave

Name

Autosave — save the current game for the player.

Synopsis

Autosave ();

Parameters

Autosave does not take any parameters.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

Autosave saves the current game immediately to one of four autosave slots. You should use this special if the player is entering an area you feel is particularly dangerous. By doing so, you save the user the trouble of remembering to save. When the player dies, they can return to the most recently saved game by pressing +use.

Note that entering a new map will automatically autosave the game. This happens if the map is a totally new one or if the player is returning to a previously visited map in a hub. If you just want to automatically save the game when the level switches, then you don't need to use this special.

Autosaving can be disabled by the player if they desire.

First Available In

ZDoom 1.23 beta 29

See Also