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
m (Also added the master keyvalue.)
(-intn, cleanup)
 
(43 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{{wrongtitle|title=trigger_autosave}}
{{tabs|trigger_autosave|goldsrc=1|source=1|main=source}}
{{CD|CTriggerSave|file1=triggers.cpp}}
{{this is a|brush entity|name=trigger_autosave}} It [[trigger]]s an auto-save when the player enters its volume.


==Entity Description==
== Keyvalues ==
Self-explanatory.
{{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.}}
{{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.}}
{{KV|Dangerous Timer|intn=DangerousTimer|float|The number of seconds the player must survive before this autosave takes effect.}}
{{KV|Minumum Hit Points|intn=MinimumHitPoints|integer|Don't save dangerous when player has less than this many hitpoints.}}


==Keyvalues==
== See also ==
* {{kv targetname}}
* {{Ent|logic_autosave}}
* '''NewLevelUnit'''
* {{Ent|logic_active_autosave}}
: {{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.
* '''master'''
: <string> Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.


==Flags==
{{sensor brush}}
None.
 
==Inputs==
* {{i targetname}}
 
==Outputs==
* {{o targetname}}
 
[[Category:Entities]][[Category:Brush Entities]]

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