Trigger autosave: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(-intn, cleanup) |
||
(17 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{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. | ||
== Keyvalues == | == Keyvalues == | ||
{{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.}} | |||
== | == See also == | ||
* {{ | * {{Ent|logic_autosave}} | ||
* {{Ent|logic_active_autosave}} | |||
{{sensor brush}} | |||
Latest revision as of 16:13, 21 June 2024
![]() |
---|
CTriggerSave |
![]() |
trigger_autosave
is a brush entity available in all 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.