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
No edit summary
(-intn, cleanup)
 
(26 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[http://gangster.tinnily.info/ gangster] [http://tinnily.info/ tinnily.info] [http://sunkie.info/ sunkie.info] [http://sunkie.info/blog/blood.html blood] [http://sunkie.info/blog/tank.html tank] [http://lunulite.info/ lunulite.info] [http://sunkie.info/blog/alexis.html alexis] [http://backpack.kinbote.info/ backpack] [http://daphnid.info/web/smc.html smc] [http://whois.warwork.info/ whois] [http://unmarine.info/topic/encarta.html encarta] [http://britney.warwork.info/ britney] [http://norwegian.lunulite.info/ norwegian] [http://unmarine.info/topic/traffic.html traffic] [http://unmarine.info/topic/1960s.html 1960s] [http://unmarine.info/topic/cattle.html cattle] [http://sunkie.info/blog/batteries.html batteries] [http://nickpot.info/icon/ icon] [http://quotes.sheitel.info/ quotes] [http://voltaire.lunulite.info/ voltaire] [http://fairies.bhistie.info/ fairies] [http://industrial.kinbote.info/ industrial] [http://unmarine.info/topic/uniden.html uniden] [http://burn.warwork.info/ burn] [http://nickpot.info/steam/ steam] [http://sheitel.info/index2_333.html map] [http://nickpot.info/rifles/ rifles] [http://sunkie.info/blog/jem.html jem] [http://comedy.lunulite.info/ comedy] [http://sunkie.info/blog/excalibur.html excalibur] [http://robotech.kinbote.info/ robotech] [http://ashtrays.lunulite.info/ ashtrays] [http://sunkie.info/blog/isa.html isa] [http://nickpot.info/chipmunk/ chipmunk] [http://tinnily.info/ tinnily.info] [http://dylan.tinnily.info/ dylan] [http://do.warwork.info/ do] [http://hispanic.tinnily.info/ hispanic] [http://tinnily.info/ tinnily.info] [http://nickpot.info/alone/ alone] [http://power.warwork.info/ power] [http://sunkie.info/blog/aviation.html aviation] [http://security.bhistie.info/ security] [http://areola.warwork.info/ areola] [http://cuckold.bhistie.info/ cuckold] [http://craiglist.warwork.info/ craiglist] [http://bhistie.info/ bhistie.info] [http://unmarine.info/topic/butalbital.html butalbital] [http://reflexology.lunulite.info/ reflexology] [http://bart.sheitel.info/ bart] [http://thirteen.kinbote.info/ thirteen] [http://nickpot.info/candle/ candle] [http://unmarine.info/topic/accessories.html accessories] [http://daphnid.info/web/john.html john] [http://ten.sheitel.info/ ten] [http://kinbote.info/index0_125.html url] [http://chinese.tinnily.info/ chinese] [http://nickpot.info/joke/ joke] [http://tinnitus.tinnily.info/ tinnitus] [http://jedi.bhistie.info/ jedi] [http://sunkie.info/blog/aflac.html aflac] [http://sedu.bhistie.info/ sedu] [http://balls.lunulite.info/ balls] [http://cheatcc.sheitel.info/ cheatcc] [http://unmarine.info/topic/nasty.html nasty] [http://bhistie.info/index4_333.html link] [http://sheitel.info/ sheitel.info] [http://draperies.tinnily.info/ draperies] [http://estrogen.sheitel.info/ estrogen] [http://nickpot.info/thirteen/ thirteen] [http://lunulite.info/ lunulite.info] [http://intellicast.lunulite.info/ intellicast] [http://unmarine.info/topic/buzzflash.html buzzflash] [http://forums.bhistie.info/ forums] [http://tinnily.info/ tinnily.info] [http://it.tinnily.info/ it] [http://barracuda.lunulite.info/ barracuda] [http://daphnid.info/web/stocking.html stocking] [http://daphnid.info/web/fireplace.html fireplace] [http://merry.kinbote.info/ merry] [http://torn.lunulite.info/ torn] [http://nickpot.info/altace/ altace] [http://verapamil.warwork.info/ verapamil] [http://hylexin.lunulite.info/ hylexin] [http://daphnid.info/web/milano.html milano] [http://nickpot.info/bobcats/ bobcats] [http://nickpot.info/kakashi/ kakashi] [http://hose.warwork.info/ hose] [http://kenalog.lunulite.info/ kenalog] [http://too.tinnily.info/ too] [http://kinbote.info/index5_500.html homepage] [http://melanoma.kinbote.info/ melanoma] [http://speeches.sheitel.info/ speeches] [http://sunkie.info/blog/modafinil.html modafinil] [http://satisfaction.bhistie.info/ satisfaction] [http://nickpot.info/quicksilver/ quicksilver] [http://diesel.tinnily.info/ diesel] [http://acyclovir.warwork.info/ acyclovir] [http://ciprofloxacin.sheitel.info/ ciprofloxacin] [http://sierra.bhistie.info/ sierra]
{{tabs|trigger_autosave|goldsrc=1|source=1|main=source}}
==Entity Description==
{{CD|CTriggerSave|file1=triggers.cpp}}
A [[brush entity]] that triggers an autosave when the player enters its volume.
{{this is a|brush entity|name=trigger_autosave}} It [[trigger]]s an auto-save when the player enters its volume.


==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 filesizes; 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}}
 
[[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