te_create_entity_light

Creates a point entity light with no world effect.

Syntax

stock te_create_entity_light(entity, position[3] = {0, 0, 0}, radius = 50, r = 255, g = 255, b = 255, life = 10, decay = 10, receiver = 0, bool:reliable = true) {

Usage

entity Entity or client to apply the light on
0
radius Light radius
r Red color amount (0 - 255)
g Green color amount (0 - 255)
b Blue color amount (0 - 255)
life The length of time the light shall remain (0 - 255)
decay Light decay rate
receiver Client index that will be able to see the light
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.