Raised This Month: $ Target: $400
 0% 

EF_BRIGHTLIGHT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stephen
Senior Member
Join Date: Aug 2004
Old 03-03-2006 , 09:50   EF_BRIGHTLIGHT
Reply With Quote #1

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...
Stephen is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-03-2006 , 09:56  
Reply With Quote #2

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 }
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
Stephen
Senior Member
Join Date: Aug 2004
Old 03-03-2006 , 10:50  
Reply With Quote #3

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 is offline
Stephen
Senior Member
Join Date: Aug 2004
Old 03-03-2006 , 11:37  
Reply With Quote #4

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 ?
Stephen is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 03-03-2006 , 13:10  
Reply With Quote #5

If you want the light to follow someone you need to have the message executed in a looping task.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Stephen
Senior Member
Join Date: Aug 2004
Old 03-03-2006 , 14:25  
Reply With Quote #6

Hmm yeh.
But wouldnt that Lagg that much then ?

or maybe done via PostThink ?
Stephen is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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