Logic active autosave: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=logic_active_autosave}}
{{base point ep2}}
{{base_point_ep2}}


==Entity Description==
==Entity Description==
An entity that is used to look for opportunities to autosave.
An entity that is used to look for opportunities to autosave.
==Keyvalues==
* {{KV Targetname}}
* '''MinimumHitPoints'''
: <integer> Start looking for an opportunity to save if player drops below this hitpoint level.
* '''TriggerHitPoints'''
: <integer> If started looking for an opportunity, save when hitpoints reach this level.
* '''TimeToTrigger'''
: <float> If > 0, how long to try and get a save off before giving up
* '''DangerousTime'''
: <float> If 0, just autosave. Otherwise, do an autosavedangerous with this time threshold


==Inputs==
== Keyvalues ==
* {{I Targetname}}
{{KV|Initiation Hit Points|integer|Start looking for an opportunity to save if player drops below this hitpoint level.}}
* {{I EnableDisable}}
{{KV|Trigger Hit Points|integer|If started looking for an opportunity, save when hitpoints reach this level.}}
==Outputs==
{{KV|Time to trigger|float|If > 0, how long to try and get a save off before giving up}}
* {{O Targetname}}
{{KV|Dangerous time|float|If 0, just autosave. Otherwise, do an autosavedangerous with this time threshold}}
{{KV Targetname}}
 
== Inputs ==
{{IO|Enable|Enable the entity}}
{{IO|Disable|Enable the entity}}
{{I Targetname}}
 
== Outputs ==
{{O Targetname}}

Revision as of 22:39, 8 June 2011

Template:Base point ep2

Entity Description

An entity that is used to look for opportunities to autosave.

Keyvalues

Initiation Hit Points ([todo internal name (i)]) <integer>
Start looking for an opportunity to save if player drops below this hitpoint level.
Trigger Hit Points ([todo internal name (i)]) <integer>
If started looking for an opportunity, save when hitpoints reach this level.
Time to trigger ([todo internal name (i)]) <float>
If > 0, how long to try and get a save off before giving up
Dangerous time ([todo internal name (i)]) <float>
If 0, just autosave. Otherwise, do an autosavedangerous with this time threshold
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

Enable
Enable the entity
Disable
Enable the entity


Outputs