func_breakable_effect

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:
- Compiler keys of brush entities: all of them
targetnameTriggering the entity plays the break. See Common keys.
materialPicks 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)gibmodelSets a model for the gibs, which the entity uses instead of the gibs of the material.
m_iGibsSets how many gibs fly, up to 255. With 0, the game decides, and with -1, no gibs fly.
0positionSets 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
1RepeatableThe entity stays after it is used, so you can trigger it again. Without this flag, it removes itself after one use
8192Smoke trails on gibsThe gibs trail smoke as they fly
16384Transparent gibsThe 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
func_breakable- a brush that breaksenv_shooter- shoots a model or a sprite of your choice
Changes since 1.38
func_breakable_effectis new in SBO 2.0.0
