Func platrot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 39: Line 39:
*{{I Parentname}}
*{{I Parentname}}
*{{I BasePlat}}
*{{I BasePlat}}
*{{i shadow}}
*{{I Shadow}}


==Outputs==
==Outputs==
*{{o targetname}}
*{{o targetname}}

Revision as of 19:33, 19 January 2009

Template:Wrongtitle Template:Base brush

Entity Description

A brush entity that moves vertically, and can rotate while doing so. Template:Brushmodel

Availability

Template:In game Template:Game-base In code it is represented by class CFuncPlatRot, defined in trains.cpp.

Keyvalues

<sound> The sound to play when the brush moves.
  • noise2
<sound> The sound to play when the brush stops moving.
  • speed
<integer> Speed at which the brush rotates, in degrees per second.
  • height
<integer> The vertical distance from the starting position that this platform moves. If negative, the platform will lower.
  • rotation
<integer> The amount this platform should rotate as it moves, in degrees.
  • _minlight
<string> The minimum level of ambient light that hits this brush.

Flags

  • 1 : Toggle
  • 64 : X Axis
  • 128 : Y Axis

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/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 <stringRedirectInput/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.
  • BasePlat:
Toggle
Toggles the platform's state.
GoUp
Tells the platform to go up.
GoDown
Tells the platform to go down.
  • 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.

Outputs