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

From Valve Developer Community
Jump to navigation Jump to search
(aaaaaaaa)
(im big idiot)
Line 1: Line 1:
<noinclude>This template is our holder for all [[outputs]] that are assigned through {{ent|CBaseEntity}}.
<noinclude>This template is our holder for all [[outputs]] 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.
To add the <code>OnKilled</code> output, add ''<code>|l4d=1</code>'' between ''<code>{{O BaseEntity</code>'' and ''<code>}}</code>''. This output is in [[Left 4 Dead]] '''only''', no other games.


[[Category:Output Templates|BaseEntity]]
[[Category:Output Templates|BaseEntity]]

Revision as of 07:05, 18 August 2018

This template is our holder for all outputs that are assigned through CBaseEntity.

To add the OnKilled output, add |l4d=1 between {{O BaseEntity and }}. This output is in Left 4 Dead only, no other games.



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