Difference between revisions of "Func platrot"

From Valve Developer Community
Jump to: navigation, search
m
(Availability)
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
{{in game|brush}} {{game-base}}
 
{{in game|brush}} {{game-base}}
{{in code|class=???|file=???}}
+
{{in code|class=CFuncPlatRot|file=dlls/trains.cpp}}
  
 
==Keyvalues==
 
==Keyvalues==

Revision as of 13:13, 5 July 2006

Template:Wrongtitle

Entity Description

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

Availability

This brush-based entity is available in:

all Source games. In code it is represented by class [1], defined in [2].

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

Toggle
Toggles the platform's state.
GoUp
Tells the platform to go up.
GoDown
Tells the platform to go down.

Outputs