Generic Keyvalues, Inputs and Outputs/Outputs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(good to go. nothing missing, formatting done, everything)
 
(21 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>This template is our holder for all [[inputs]] that are assigned through {{ent|CBaseEntity}}.


To add the <code>OnKilled</code> input, add ''<code>|l4d=1</code>'' between ''<code>{{O BaseEntity</code>'' and ''<code>}}</code>''. This output is in [[Left 4 Dead]] '''only''', no other games.
== Outputs ==
 
{{O|OnUser1|to=OnUser4|activator = activator of FireUser1-4 inputs|These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see [[User Inputs and Outputs]].}}
[[Category:Output Templates|BaseEntity]]
{{O|OnKilled|only={{l4d}}|activator = !caller = none|caller=hide|This output fires when the entity is killed and removed from the game.}}
----
</noinclude>
{{IO|OnUser1|to=OnUser4|These Outputs each fire in response to the firing of the like-numbered <code>FireUser1</code> to <code>FireUser4</code> Input; see [[User Inputs and Outputs]].}}
{{#if:{{{l4d|}}}|{{IO|OnKilled|since=L4D|This Output fires when the entity is killed and removed from the game. {{l4d}} only.}}| }}<noinclude>{{IO|OnKilled|since=L4D|This Output fires when the entity is killed and removed from the game. {{l4d}} only.}}</noinclude>

Latest revision as of 02:44, 22 April 2025

Outputs

OnUser1 to OnUser4
!activator = activator of FireUser1-4 inputs
!caller = this entity
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (only in Left 4 Dead)
!activator = !caller = none
This output fires when the entity is killed and removed from the game.