Env firesensor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
(-fl template used, internal names formatting, concise page)
Line 5: Line 5:


==Flags==
==Flags==
*1: Start On
{{fl|1|Start On}}


==Keyvalues==
==Keyvalues==
{{KV|Radius (fireradius)|float|The radius around this entity in which to detect heat changes.}}
{{KV|Radius|intn=fireradius|float|The radius around this entity in which to detect heat changes.}}
{{KV|Heat level (heatlevel)|float|The target heat level to check for. Outputs are fired when the heat moves over this target level (increasing or decreasing).}}
{{KV|Heat level|intn=heatlevel|float|The target heat level to check for. Outputs are fired when the heat moves over this target level (increasing or decreasing).}}
{{KV|Time at level (heattime)|float|The amount of time the heat level must spend over the target level before the '<code>OnHeatLevelStart</code>' output is fired.}}
{{KV|Time at level|intn=heattime|float|The amount of time the heat level must spend over the target level before the '<code>OnHeatLevelStart</code>' output is fired.}}
{{KV BaseEntity|css=1}}
{{KV Targetname}}


==Inputs==
==Inputs==
{{I EnableDisable}}
{{I EnableDisable}}
{{I BaseEntity|prel4d=1}}


==Outputs==
==Outputs==
{{IO|OnHeatLevelStart|Fires when the heat level has been sustained for the specified length of time.}}
{{IO|OnHeatLevelStart|Fires when the heat level has been sustained for the specified length of time.}}
{{IO|OnHeatLevelEnd|Fires when the heat level drops below the target level.}}
{{IO|OnHeatLevelEnd|Fires when the heat level drops below the target level.}}
{{O BaseEntity|l4d=1}}
 
== See Also ==
* {{ent|env_fire}}

Revision as of 08:00, 1 November 2022

English (en)中文 (zh)Translate (Translate)

Template:Base point It detects changes in heat from nearby env_fires.

C++ In code, it is represented by theCEnvFireSensorclass, defined in thefire.cppfile.

Flags

Start On : [1]

Keyvalues

Radius (fireradius) <float>
The radius around this entity in which to detect heat changes.
Heat level (heatlevel) <float>
The target heat level to check for. Outputs are fired when the heat moves over this target level (increasing or decreasing).
Time at level (heattime) <float>
The amount of time the heat level must spend over the target level before the 'OnHeatLevelStart' output is fired.
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

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnHeatLevelStart
Fires when the heat level has been sustained for the specified length of time.
OnHeatLevelEnd
Fires when the heat level drops below the target level.

See Also