Difference between revisions of "EF BRIGHTLIGHT"

From Valve Developer Community
Jump to: navigation, search
m (updated link)
m
Line 4: Line 4:
 
This effect creates a dynamic light with an RGB value of <code>250 250 250</code> and a random radius of 400 to 431 at the origin.
 
This effect creates a dynamic light with an RGB value of <code>250 250 250</code> and a random radius of 400 to 431 at the origin.
  
To use this effect, turn off SmartEdit mode and add the following keyvalue pair to the entity: <code>effects 2</code>.
+
{{effect|2|}}
 
 
{{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.}}
 
 
[[Category:Constants]]
 
[[Category:Constants]]

Revision as of 00:35, 29 September 2006

Template:Wrongtitle EF_BRIGHTLIGHT is defined as 0x002, or 2.

This effect creates a dynamic light with an RGB value of 250 250 250 and a random radius of 400 to 431 at the origin.

Usage

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

Note: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: Using the AddOutput functionality for this, the new value may interfere with an entity's simulation functionality.