te_create_following_beam

Creates a decaying beam that follows the entity until it stops moving.

Syntax

stock te_create_following_beam(entity, sprite, life = 10, width = 10, r = 0, g = 0, b = 255, a = 75, receiver = 0, bool:reliable = true) {

Usage

entity Entity that the beam will follow
sprite The sprite index to use in the beam
life The length of time the beam shall remain (0 - 255)
width The width 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)
receiver Client index that will be able to see the beam
reliable If true, the message will be sent via the reliable

Return

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

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