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
if "receiver" is non-zero and the client isn't connected,
Notes
Video preview of this and all other te_ stocks can be found here:
Defined in
msgstocks.inc
at line 1721
.
This documentation was automatically generated from source.