Template:I Door: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
Line 1: Line 1:
{{ScrollBox|title=Door|noscroll=true|
; <code>Open</code>
; <code>Close</code>
; <code>Toggle</code>
: Control the state of the door.
; <code>Lock</code>
; <code>Unlock</code>
: Lock or unlock the door.
; <code>SetSpeed <[[float]]></code>
: Set the door's movement speed.
{{ScrollBox|
{{I Shadow}}
{{I RenderFields}}
{{I Parentname}}
{{I Targetname}}
{{I Targetname}}
* {{I RenderFields}}
}}
* {{I Parentname}}
}}
* {{I Shadow}}
* '''Open'''
: Open the door, if it is not fully open.
* '''Close'''
: Close the door, if it is not fully closed.
* '''Toggle'''
: Toggle the door between open and closed.
* '''Lock'''
: Lock the door.
* '''Unlock'''
: Unlock the door.
* '''SetSpeed <float>'''
: Set the door speed.

Revision as of 13:34, 22 August 2009

Door:
Open
Close
Toggle
Control the state of the door.
Lock
Unlock
Lock or unlock the door.
SetSpeed <float>
Set the door's movement speed.

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.

RenderFields:

Alpha <integer 0–255>
Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its rendermode set to a number other than 0.
Color <color255>
Sets an RGB color for the entity.
Parentname:
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.