Func plat

From Valve Developer Community
Revision as of 19:31, 19 January 2009 by VDCBot (talk | contribs) (Robot: fixing template case.)
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

Entity Description

FGD Code

@SolidClass base(BasePlat) = func_plat :
	"A brush entity that moves vertically, and can rotate while doing so."
[
	spawnflags(flags) =
	[
		1: "Toggle" : 1
	]
	noise1(sound) : "Movement Sound" : : "The sound to play when the brush moves."
	noise2(sound) : "Stop Sound" : : "The sound to play when the brush stops moving."
	speed(float) : "Speed" : "50.000000" : "Speed at which the brush moves"
	lip(float) : "Lip" : "0.000000" :	"The amount, in inches, of the button to leave " +
						"sticking out of the wall it recedes into when " +
						"pressed. Negative values make the button recede " +
						"even further into the wall."
]

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 moves.
  • lip
<float> The amount, in inches, of the button to leave sticking out of the wall it recedes into when pressed. Negative values make the button recede even further into the wall."

Flags

  • 1 : Toggle

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.

Outputs