Shadow control: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(raw; needs cleanup)
 
(Formatted the page according to the entity template)
Line 1: Line 1:
{{cleanup}}
==Entity Description==
shadow_control
An entity to control shadows in the map.


An entity to control the shadows in the map.
==Keyvalues==


KEYS
* {{kv targetname}}


Name targetname <target_source> The name that other entities refer to this entity by.
* {{kv angles}}


Pitch Yaw Roll (Y Z X) angles <string> This is the shadow direction. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, and roll is the rotation around the X axis.
* '''Shadow Color'''
: {{color}} The color of the shadows.


Shadow Color color <color255> This is the color of the shadows.
* '''Maximum Distance'''
: The maximum distance the shadow is allowed to cast, in inches.


Maximum Distance distance <float> This is the maximum distance the shadow is allowed to cast, in inches.


==Inputs==


INPUTS
* {{i targetname}}


Kill Removes this entity from the world.
* '''color'''
: {{color}} Set the shadow color.


KillHierarchy Removes this entity and all its children from the world.
* '''direction'''
: Set the shadow direction.


AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
* '''SetDistance'''
: Set the maximum shadow cast distance.


FireUser1 Causes this entity's OnUser1 output to be fired.
* '''SetAngles'''
: Set the shadow direction.


FireUser2 Causes this entity's OnUser2 output to be fired.
==Outputs==


FireUser3 Causes this entity's OnUser3 output to be fired.
* {{i targetname}}


FireUser4 Causes this entity's OnUser4 output to be fired.
==See Also==


color <color255> Set the shadow color.
* Add links to related articles, entities, or tutorials here.


direction <vector> Set the shadow direction.
[[Category:Entities]]
 
SetDistance <float> Set the maximum shadow cast distance.
 
SetAngles <string> Set the shadow direction.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Revision as of 11:26, 25 December 2005

Entity Description

An entity to control shadows in the map.

Keyvalues

  • Shadow Color
#000000 The color of the shadows.
  • Maximum Distance
The maximum distance the shadow is allowed to cast, in inches.


Inputs

  • color
#000000 Set the shadow color.
  • direction
Set the shadow direction.
  • SetDistance
Set the maximum shadow cast distance.
  • SetAngles
Set the shadow direction.

Outputs

See Also

  • Add links to related articles, entities, or tutorials here.