Garry's Mod Wiki

effects.BeamRingPoint

effects.BeamRingPoint( Vector pos, number lifetime, number startRad, number endRad, number width, number amplitude, table color, table extra )

Just Added

This was just added in the latest version (2020.04.29). It might only be available on the Dev Branch right now.

Description

Creates a "beam ring point" effect.

Arguments

1 Vector pos
The origin position of the effect
2 number lifetime
How long the effect will be drawing for, in seconds
3 number startRad
Initial radius of the effect
4 number endRad
Final radius of the effect, at the end of the effect's lifetime
5 number width
How thick the beam should be
6 number amplitude
How noisy the beam should be
7 table color
Beam's Color
8 table extra
Extra info, all optional. A table with the following keys: (any combination)

  • number speed - ?
  • number spread - ?
  • number delay - Delay in seconds after which the effect should appear
  • number flags- Beam flags
  • number framerate - texture framerate
  • string material - The material to use instead of the default one

Example

effects.BeamRingPoint( Entity(1):GetEyeTrace().HitPos + Vector(0,0,10), 1, 0, 200, 10, 0, Color(255,255,255))
Output:
image.png

Page Links


Special Pages


Wikis

?

Render Time: 70ms

DB GetPage 3
Generate Html 42
SaveChanges (1) 9
Render Body 0
Render Sidebar 13