This article's documentation is for anything that uses the Source engine. Click here for more information.

Func platrot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 2: Line 2:
{{subpage|[[Trains]]}}
{{subpage|[[Trains]]}}
{{CD2|CFuncPlatRot|file1=trains.cpp}}
{{CD2|CFuncPlatRot|file1=trains.cpp}}
{{entity|func_platrot|type=e2}} It moves vertically, and can rotate while doing so.  
{{this is a|e2|name=func_platrot}} It moves vertically, and can rotate while doing so.  


== KeyValues ==
== KeyValues ==

Revision as of 10:55, 4 January 2024

C++ class hierarchy
CFuncPlatRot defined in C++ trains.cpp
CFuncPlat
CBasePlatTrain
CBaseToggle
CBaseEntity

func_platrot is an e2 available in all Source Source games. It moves vertically, and can rotate while doing so.

KeyValues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Movement Sound (noise1) <sound>
The sound to play when the brush moves.
Stop Sound (noise2) <sound>
The sound to play when the brush stops moving.
Speed of Rotation (speed) <integer>
Speed at which the brush rotates, in degrees per second.
Travel Altitude (height) <integer>
The vertical distance from the starting position that this platform moves. If negative, the platform will lower.
Spin amount (rotation) <integer>
The amount this platform should rotate as it moves, in degrees.

Flags

Toggle : [1]
X Axis : [64]
Y Axis : [128]

Inputs

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

See Also

func_plat