Raised This Month: $ Target: $400
 0% 

Light an area (How to ?)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-09-2007 , 17:40   Re: Light an area (How to ?)
Reply With Quote #4

@rolnaaba: set_lights() is for the whole map ;)

Code:
spawn_light(origin[3])
{
    message_begin(MSG_BROADCAST, SVC_TEMPENTITY, origin) 
    write_byte(TE_DLIGHT);// 27
    write_coord(origin[0]);  // x
    write_coord(origin[1]);  // y
    write_coord(origin[2]);  // z
    write_byte(100); // radius in 10's
    write_byte(255); // r
    write_byte(255); // g
    write_byte(255); // b
    write_byte(8);    // life in 10's
    write_byte(60);  // decay rate in 10's
    message_end();
}
Just set the origin where the light should be...and maybe the color and radius...don't ask me what decay is..0o

greetz regalis
__________________
regalis is offline
 



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 10:35.


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