Template:Effect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
{{note|If it is desired to use this with other [[effects enum|effects]], you should add the integer value of each effect to the value.}}
{{note|If it is desired to use this with other [[effects enum|effects]], you should add the integer value of each effect to the value.}}


Remember that you can set the effects value during runtime using an entity's <code>AddOutput</code> input with the input value <code>effects x</code> (x being any summation of effects flags).
Remember that you can set the effects value during runtime using an entity's <code>AddOutput</code> input with the input value <code>effects x</code> (x being any summation of effects flags to enable).


{{warning|Using the AddOutput functionality for this, the new value may interfere with an entity's simulation functionality.}}
{{warning|Using the AddOutput functionality for this, the new value may interfere with an entity's simulation functionality.}}

Revision as of 13:28, 11 October 2006

To use this effect, {{{2}}} turn off SmartEdit mode and add the following keyvalue pair to the entity: effects {{{1}}}.

Note.pngNote:If it is desired to use this with other effects, you should add the integer value of each effect to the value.

Remember that you can set the effects value during runtime using an entity's AddOutput input with the input value effects x (x being any summation of effects flags to enable).

Warning.pngWarning:Using the AddOutput functionality for this, the new value may interfere with an entity's simulation functionality.