Autosave

15:Autosave (No parameters required)

Usage

Automatically saves the game to an autosave slot. A common usage is to split levels into pieces, so that if the player dies, he or she does not have to start from the very beginning.

  • Note: using this will notify the player, so that using it right before an event will let the player know something may happen.

Examples

Usually this is set on a line making sure not to set it to be repeatable. If you were to be generous, you could set up a safety script like this:

script 10 (void)
{
	if (GetActorProperty(0, APROP_HEALTH) > 10)
		Autosave();
}

This sort of script will prevent the game from saving when the player's health is too low, as it can be considered annoying to overwrite a previous save when the player is in a dire situation.

Conversions from linedef types

The following Doom map format types can be converted as Autosave:

TypeConversionTrigger
ZDoom 348:W1 AutosaveAutosave()Player Cross
ZDoom 349:S1 AutosaveAutosave()Player Use
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.