Template:KVIO ItemSE1: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created Sin Episodes Item KVIO template)
 
No edit summary
 
Line 1: Line 1:
==Keyvalues==
==Keyvalues==
{{KV Targetname|basehl2=1}}
{{KV Targetname}}
{{KV Angles}}
{{ScrollBox|title=Shadow|
{{KV|Disable shadows (disableshadows)|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
}}


==Inputs==
== Outputs ==
{{minititle|Base}}
{{O|OnPlayerTouch|Fires when the player touches this item. {{ent|!activator}} is the player.}}
{{IO|[[AddOutput]]|Evaluates a keyvalue/output on this entity. <br/>Format: <code><key> <value></code><br/>Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}}
{{O|OnUse|Fired when the <code>Use</code> input is given.}}
{{IO|FireUser1|to=FireUser4|Fire the <code>OnUser</code> outputs; see [[User Inputs and Outputs]].}}
{{IO|Kill|Removes this entity and any entities parented to it from the world.}}
{{IO|KillHierarchy|Functions the same as <code>Kill</code>, although this entity and any entities parented to it are killed on the same frame, being marginally faster than <code>Kill</code>.}}
{{IO|EnableShadow|Allows the entity to draw a [[render target]] shadow.}}
{{IO|DisableShadow|Prevents the entity from drawing a [[render target]] shadow.}}
 
==Outputs==
{{minititle|Item}}
{{IO|OnPlayerTouch|Fires when the player touches this item. {{ent|!activator}} is the player.}}
{{O BaseEntity}}
{{IO|OnUse|Fired when the <code>Use</code> input is given.}}


[[Category:Items]]
[[Category:Items]]

Latest revision as of 10:58, 26 September 2024

Keyvalues

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

Outputs

OnPlayerTouch
Fires when the player touches this item. !activator is the player.
OnUse
Fired when the Use input is given.