Skip to main content

env_shake

env_shake icon
Point entity

An env_shake shakes the view of players when you trigger it.

Attributes​

KeyDescriptionDefault
Nametargetname

Each time you trigger the entity, it starts a shake. See Common keys.

Amplitudeamplitude

Sets how strong the shake is, from 0 for no shake up to 16 for a very strong one, and anything above 16 works like 16.

If you leave this key empty, it is 0 and nothing shakes.

Default 4
Effect radiusradius

Sets how far the shake reaches from its position: players inside this distance shake and players outside it don't, and 0 makes every player shake.

If you leave this key empty, it is 0 and every player shakes.

Default 500
Durationduration

Sets how many seconds the shake lasts, up to 16, and the shake gets weaker toward the end.

If you leave this key empty, it is 0 and nothing shakes.

Default 1
Frequencyfrequency

Sets how fast the view moves back and forth, from 0.1 for a single jolt up to 255 for a fast rumble.

If you leave this key empty, it is 0 and nothing shakes.

Default 2.5
PositionFeaturefulmessage

Sets where the shake is, which is the point Effect radius is measured from. It takes a locus position, so you can use:

  • x y z - a point on the map, given as three coordinates
  • the name of an entity - the shake is at that entity's position
  • the name of a calc_position - the shake is at the position it works out
  • !activator - the shake is at the entity that started the chain of triggers
  • nothing - the shake is at the env_shake itself

Flags​

1GlobalShake

Every player shakes, and the entity ignores Effect radius

Notes​

  • Only players standing on the ground shake, so a player who is jumping or falling at that moment feels nothing
  • Every player inside the Effect radius feels the same shake, so a player near the edge feels it as strongly as a player at the center
  • Every trigger starts a shake, even a trigger with the use type Off, and you can't stop a shake once it has started
  • If Position names an entity that doesn't exist, nothing shakes

See also​

Changes since 1.38​

  • You can set where the shake is with the new key Position