stock te_create_following_beam(entity, sprite, life = 10, width = 10, r = 0, g = 0, b = 255, a = 75, receiver = 0, bool:reliable = true)
Entity that the beam will follow
The sprite index to use in the beam
The length of time the beam shall remain (0 - 255)
The width of the beam (0 - 255)
Red color amount (0 - 255)
Green color amount (0 - 255)
Blue color amount (0 - 255)
Beam brightness (alpha) (0 - 255)
Client index that will be able to see the beam
or 0 for all clients
If true, the message will be sent via the reliable
channel, otherwise it will use the unreliable one
Creates a decaying beam that follows the entity until it stops moving.
A common sprite to use is "sprites/laserbeam.spr"
When the entity stops moving, the beam will become visible again
once the entity starts moving.
Video preview of this and all other te_ stocks can be found here:
0 if "receiver" is non-zero and the client isn't connected,