Skip to main content

func_breakable_effect

func_breakable_effect icon
Brush entityPorted from Featureful

A func_breakable_effect plays the break of a func_breakable each time you trigger it: the sound and the flying gibs of its material. Nothing breaks, because the brush is invisible and not solid.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Nametargetname

Triggering the entity plays the break. See Common keys.

Material typematerial

Picks the material whose break sound plays and whose gibs fly, as on a func_breakable, and Unbreakable Glass breaks like Glass.

The 9 choices
  • Glass (0)
  • Wood (1)
  • Metal (2)
  • Flesh (3)
  • Cinder Block (4)
  • Ceiling Tile (5)
  • Computer (6)
  • Unbreakable Glass (7)
  • Rocks (8)
Default Glass (0)
Gib Modelgibmodel

Sets a model for the gibs, which the entity uses instead of the gibs of the material.

Custom number of gibsm_iGibs

Sets how many gibs fly, up to 255. With 0, the game decides, and with -1, no gibs fly.

Default 0
At positionposition

Sets where the gibs come out, and the sound always plays at the brush. It takes a locus position, so it can be a point such as 0 0 64, the name of an entity, or !activator for the entity that started the chain of triggers.

If you leave this key empty, the gibs come out of the middle of the brush.

Flags​

1Repeatable

The entity stays after it is used, so you can trigger it again. Without this flag, it removes itself after one use

8192Smoke trails on gibs

The gibs trail smoke as they fly

16384Transparent gibs

The gibs are drawn see-through

Notes​

  • If At position can't be worked out, nothing plays that time
  • Players who join later don't see gibs that have already flown

See also​

Changes since 1.38​

  • func_breakable_effect is new in SBO 2.0.0