te_create_beam_sprite

Syntax

stock te_create_beam_sprite(startpos[3], endpos[3], beamid, endid, receiver = 0, bool:reliable = true)

Usage

receiver
Client index that will be able to see the beam
or 0 for all clients
startpos
Starting position of the beam
endpos
Ending position of the beam
beamid
Sprite index for the beam body
endid
Sprite index for the end of the beam
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 with a sprite at the end of the beam.

Note

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

Return

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