trigger_autosave

From Source Entities
Jump to navigation Jump to search

Code classes:

Trigger.png

trigger_autosave is a brush entity present in all Source games. In singleplayer games, this entity tells the game to make a save state when a player touches it.

Note: The entity will remove itself after saving.

Keyvalues[edit | edit source]

Force New Level Unit (NewLevelUnit) <boolean>
If true, the game will purge all previous save files when the new save is made. This is done periodically to keep the save folder uncluttered.
Dangerous Timer (DangerousTimer) <float>
If used, the entity does a dangerous save. The game will not save until the player has survived for this long after touching the trigger.
Minimum Hit Points (MinimumHitPoints) <integer>
If making a dangerous save, require that the player have at least this much health.

See Also[edit | edit source]