te_create_beam_ring_between_ent

Syntax

stock te_create_beam_ring_between_ent(startent, endent, sprite, 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

startent
Primary entity id
endent
Secondary entity id
sprite
The sprite index to use in the beam
startframe
The frame to start with in the sprite (0 - 255)
framerate
The frame rate to show the sprite at (0 - 255)
life
The length of time the beam shall remain (0 - 255)
width
The width of the beam (0 - 255)
noise
The noise amplitude of the beam, this controls
the distorsion of the beam (0 - 255)
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
or 0 for all clients
reliable
If true, the message will be sent via the reliable
channel, otherwise it will use the unreliable one

Description

Creates a beam ring between two entities.

Note

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

Note

Video preview of this and all other te_ stocks can be found here:
https://youtu.be/szW-bSMPuyQ?t=5m10s

Return

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