AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   EF_BRIGHTLIGHT (https://forums.alliedmods.net/showthread.php?t=24831)

Stephen 03-03-2006 09:50

EF_BRIGHTLIGHT
 
Hi is there anyway of changing the Light where is emitted then ? and a way to turn it off again once you had enough of it ?

Code:
public test(id) {     entity_set_int(id,EV_INT_effects,EF_BRIGHTLIGHT)     return PLUGIN_HANDLED }

Like setting radius/life/RGB/etc...

SSJ2GOKU 03-03-2006 09:56

try to leave the last part away
or store the value first

edit: this should work

Code:
new lightvalue public test(id) {     lightvalue = entity_get_int(id,EV_INT_effects)     entity_set_int(id,EV_INT_effects,EF_BRIGHTLIGHT)     return PLUGIN_HANDLED } public set_back(id) {     entity_set_int(id,EV_INT_effects,lightvalue)     return PLUGIN_HANDLED }

Stephen 03-03-2006 10:50

erm Nope.

I tried different ways now.But i had no effect change at all.

i want to be able to edit.
RGB
Radius
Lifetime / or On and Off.

Stephen 03-03-2006 11:37

ok.
I now now that the BrightLight is TE_DLIGHT

But HOW can i make it so that it follows the Player till it runs out of lifetime ?

Charr 03-03-2006 13:10

If you want the light to follow someone you need to have the message executed in a looping task.

Stephen 03-03-2006 14:25

Hmm yeh.
But wouldnt that Lagg that much then ?

or maybe done via PostThink ?


All times are GMT -4. The time now is 20:18.

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