This article's documentation is for anything that uses the Source engine. Click here for more information.

Trigger autosave: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-intn, cleanup)
 
(16 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{base_brush}}
{{tabs|trigger_autosave|goldsrc=1|source=1|main=source}}
 
{{CD|CTriggerSave|file1=triggers.cpp}}
== Entity description ==
{{this is a|brush entity|name=trigger_autosave}} It [[trigger]]s an auto-save when the player enters its volume.
A [[brush entity]] that triggers an auto-save when the player enters its volume.
{{sensor_brush}}


== Keyvalues ==
== Keyvalues ==
* {{kv targetname}}
{{KV|Master|intn=master|string|Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.}}
* '''NewLevelUnit'''
{{KV|Force New Level Unit|intn=NewLevelUnit|boolean|If set, the save will discard any savedata from previous levels, for the purpose of keeping savegame filesizes down. Can only be safely used if there is no way for the player to return to previous levels.}}
: {{boolean}} If set, any savedata from previous levels will be discarded, typically reducing savegame file sizes; it should only be used when the player cannot backtrack to previous levels.
{{KV|Dangerous Timer|intn=DangerousTimer|float|The number of seconds the player must survive before this autosave takes effect.}}
* '''master'''
{{KV|Minumum Hit Points|intn=MinimumHitPoints|integer|Don't save dangerous when player has less than this many hitpoints.}}
: <target_destination> Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.
* '''DangerousTimer'''
: <float> The number of seconds the player must survive before this autosave takes effect.
<!--No flags-->


== Inputs ==
== See also ==
* {{i targetname}}
* {{Ent|logic_autosave}}
* {{Ent|logic_active_autosave}}


== Outputs ==
{{sensor brush}}
* {{o targetname}}

Latest revision as of 16:13, 21 June 2024

C++ Class hierarchy
CTriggerSave
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_autosave is a brush entity available in all Source Source games. It triggers an auto-save when the player enters its volume.

Keyvalues

Master (master) <string>
Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.
Force New Level Unit (NewLevelUnit) <boolean>
If set, the save will discard any savedata from previous levels, for the purpose of keeping savegame filesizes down. Can only be safely used if there is no way for the player to return to previous levels.
Dangerous Timer (DangerousTimer) <float>
The number of seconds the player must survive before this autosave takes effect.
Minumum Hit Points (MinimumHitPoints) <integer>
Don't save dangerous when player has less than this many hitpoints.

See also