func_plat

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:
- Naming and triggering: Global Entity Name
- Appearance: Render FX, Render Mode, FX Amount and FX Color
- Compiler keys of brush entities: all of them
targetnameThe 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.
movesndSets the sound it plays while it moves, and if you set Custom move sound, it ignores this key.The 14 choices
No Sound (0)stopsndSets the sound it plays when it stops, and if you set Custom stop sound, it ignores this key.The 9 choices
No Sound (0)volumeSets 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.
0.85Sets the use type that the Fire On Start targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the Fire On Stop targets get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)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 (large) (0)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.
parentflagsKeeps 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.
0heightSets 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.
0speedSets how fast the platform moves, in units per second, and 0 means 150.
50Names the entities to trigger when the platform starts to move up, to its top.
Sets the use type that the targets of Fire On Open Start get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Names the entities to trigger when the platform starts to move down, to its bottom.
Sets the use type that the targets of Fire On Close Start get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Sets the use type that the targets of Fire On Open End get.
- Off (0)
- On (1)
- Toggle (2)
Off (0)Flags
1ToggleThe 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
func_platrot- a platform that also turns while it movesfunc_train- a brush that moves along a pathfunc_door- a door that slides- func_plat on TWHL - the Half-Life entity
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

