te_create_beam_ring

Creates a screen aligned beam ring that expands to the maximum radius over lifetime.

Syntax

stock te_create_beam_ring(position[3], sprite, axis[3] = {0, 0, 0}, startframe = 0, framerate = 30, life = 10, width = 10, noise = 0, r = 0, g = 0, b = 255, a = 75, speed = 0, receiver = 0, bool:reliable = true) {

Usage

sprite The sprite index to use in the beam
0
startframe The frame to start with in the sprite
framerate The frame rate to show the sprite at
life The length of time the beam shall remain
width The width of the beam
noise The noise amplitude of the beam, this controls
r Red color amount (0 - 255)
g Green color amount (0 - 255)
b Blue color amount (0 - 255)
a Beam brightness (alpha) (0 - 255)
speed The scroll speed of the beam (0 - 255)
receiver Client index that will be able to see the beam
reliable If true, the message will be sent via the reliable

Return

if "receiver" is non-zero and the client isn't connected,

Notes

A common sprite to use is "sprites/laserbeam.spr"

Video preview of this and all other te_ stocks can be found here:

Defined in msgstocks.inc at line 1333 . This documentation was automatically generated from source.