te_create_beam_between_points

Синтаксис

stock te_create_beam_between_points(startpos[3], endpos[3], 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)

Употреба

startpos
Starting coordinates of the beam
endpos
Ending coordinates of the beam
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

Описание

Creates a beam between two points.

Забележка

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

Забележка

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

Връщаща стойност

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