Skip to main content

func_wall_toggle

func_wall_toggle icon
Brush entity

A func_wall_toggle is a wall that appears and disappears when you trigger it. While it is hidden, it isn't solid.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Nametargetname

Triggering the entity shows or hides the wall: the use type On shows it, Off hides it and Toggle switches it. See Common keys.

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

Flags​

1Starts Invisible

The wall starts hidden and not solid, and triggering it makes it appear

2Use Angles

The wall keeps the angles set in the map. Without this flag, the angles are set to 0 0 0

See also​

Changes since 1.38​

  • You can use the new flag Use Angles