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

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
{{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]].}}<!--
{{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|}}}|<!--
-->{{#if:{{{l4d|}}}|<!--
-->{{IO|OnKilled|only=l4d|This output fires when the entity is killed and removed from the game.}}| }}
-->{{IO|OnKilled|only={{l4d}}|This output fires when the entity is killed and removed from the game.}}| }}

Revision as of 05:13, 7 November 2022

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

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 the Left 4 Dead engine branch only, no other games.


Base:

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.