Skip to main content

func_plat

func_plat icon
Brush entity

A func_plat moves up and down, like a lift. Without a Name, it waits at the bottom, and a player who steps on it sends it up, after which it comes back down. With a Name, it starts at the top, and the first trigger sends it down, after which it works like a platform without a name.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Nametargetname

The first trigger sends the platform down, and later triggers do nothing. With the flag Toggle, each trigger sends it to its other end. See Common keys.

Move Soundmovesnd

Sets the sound it plays while it moves, and if you set Custom move sound, it ignores this key.

The 14 choices
  • No Sound (0)
  • big elev 1 (1)
  • big elev 2 (2)
  • tech elev 1 (3)
  • tech elev 2 (4)
  • tech elev 3 (5)
  • freight elev 1 (6)
  • freight elev 2 (7)
  • heavy elev (8)
  • rack elev (9)
  • rail elev (10)
  • squeek elev (11)
  • odd elev 1 (12)
  • odd elev 2 (13)
Default No Sound (0)
Stop Soundstopsnd

Sets the sound it plays when it stops, and if you set Custom stop sound, it ignores this key.

The 9 choices
  • No Sound (0)
  • big elev stop1 (1)
  • big elev stop2 (2)
  • freight elev stop (3)
  • heavy elev stop (4)
  • rack stop (5)
  • rail stop (6)
  • squeek stop (7)
  • quick stop (8)
Default No Sound (0)
Sound Volumevolume

Sets how loud the move and stop sounds are, from 0.0 for silent up to 1.0 for full volume.

If you leave this key empty or set 0, it is 0.85.

Default 0.85
Fire On StartFeaturefulfireonstart

Fires when it starts moving, in either direction.

Fire On Start use typeFeaturefulfireonstart_triggerstate

Sets the use type that the Fire On Start targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On StopFeaturefulfireonstop

Fires when it stops, at either end.

Fire On Stop use typeFeaturefulfireonstop_triggerstate

Sets the use type that the Fire On Stop targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Sound radiusFeaturefulsoundradius

Sets how far away players hear its move and stop sounds.

  • Small (-2) - Up to about 500 units away
  • Medium (-1) - Up to about 800 units away
  • Default (large) (0) - Up to about 1250 units away
  • Huge (1) - Up to about 2000 units away
  • Enormous (2) - Up to about 4000 units away
  • Play Everywhere (3) - Anywhere on the map, at full volume
Default Default (large) (0)
Custom move soundFeaturefulcustommovesnd

Sets a sound file that plays while it moves, instead of Move Sound.

Custom stop soundFeaturefulcustomstopsnd

Sets a sound file that plays when it stops, instead of Stop Sound.

Move withSpirit of Half-Lifemovewith

Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.

If you leave this key empty, the entity doesn't move with anything.

Axis locksparentflags

Keeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.

Default 0
Travel altitudeheight

Sets how far the platform travels down from where you build it, in units, and a negative value makes it travel up. With 0, it travels its own height minus 8 units.

Default 0
Speedspeed

Sets how fast the platform moves, in units per second, and 0 means 150.

Default 50
Fire On Open StartFeaturefulfireonopening

Names the entities to trigger when the platform starts to move up, to its top.

Fire On Open Start use typeFeaturefulfireonopening_triggerstate

Sets the use type that the targets of Fire On Open Start get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Close StartFeaturefulfireonclosing

Names the entities to trigger when the platform starts to move down, to its bottom.

Fire On Close Start use typeFeaturefulfireonclosing_triggerstate

Sets the use type that the targets of Fire On Close Start get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Open EndFeaturefulfireonopened

Names the entities to trigger when the platform reaches its top.

Fire On Open End use typeFeaturefulfireonopened_triggerstate

Sets the use type that the targets of Fire On Open End get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Close EndFeaturefulfireonclosed

Names the entities to trigger when the platform reaches its bottom.

Fire On Close End use typeFeaturefulfireonclosed_triggerstate

Sets the use type that the targets of Fire On Close End get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)

Flags​

1Toggle

The platform only moves when you trigger it: each trigger sends it to its other end, where it stays, and players who step on it don't start it

Notes​

  • At its top, a platform without Toggle goes back down 1 second after the last player steps off it, or after 3 seconds if no player is on it
  • If something blocks the platform, the platform deals 1 damage to it and goes back

See also​

Changes since 1.38​

  • You can use the new Fire On keys and their use types, Sound radius and the custom move and stop sounds