AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] The correct way to use TE_ELIGHT (https://forums.alliedmods.net/showthread.php?t=242287)

Starman 06-16-2014 21:36

[HELP] The correct way to use TE_ELIGHT
 
Well, as the title says, I just checked in the library "message_const.inc" by the use of the temporary entity, the truth is that I want to make perfectly under what conditions I use it, and how to make that entity is permanent (or lasting a very long time, as a function of working life [every 0.1 to be specific]), so I would like to leave me aware the information, thanks.

Here would be the code that I draw from this library:

PHP Code:

#define TE_ELIGHT                   28       // Point entity light, no world effect
// write_byte(TE_ELIGHT)
// write_short(entity:attachment to follow)
// write_coord(position.x)
// write_coord(position.y)
// write_coord(position.z)
// write_coord(radius)
// write_byte(red)
// write_byte(green)
// write_byte(blue)
// write_byte(life in 0.1's)
// write_coord(decay rate) 



All times are GMT -4. The time now is 21:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.