Garry's Mod Wiki

effects

The effects library allows you to manually add scripted effects.

Methods

effects.BeamRingPoint( Vector pos, number lifetime, number startRad, number endRad, number width, number amplitude, table color, table extra )
Creates a "beam ring point" effect.
effects.Bubbles( Vector mins, Vector maxs, number count, number height, number speed = 0, number delay = 0 )
Creates a bunch of bubbles inside a defined box.
effects.BubbleTrail( Vector startPos, Vector endPos, number count, number height, number speed = 0, number delay = 0 )
Creates a bubble trail effect, the very same you get when shooting underwater.
table effects.Create( string name )
This is used internally - although you're able to use it you probably shouldn't. You are looking for util. Effect. Returns the table of the effect specified.
table effects.GetList()
This is used internally - although you're able to use it you probably shouldn't. Returns a list of all Lua-defined effects.
effects.Register( table effect_table, string name )
This is used internally - although you're able to use it you probably shouldn't. Registers a new effect.