Invisible lightsource
Code:
ENTITY* lightsource = ent_create( NULL, vector(x,y,z), NULL);  //create light point
lightsource.lightrange = greater_than_zero;  //make it light up other stuff


visible lightsource
Code:
ENTITY* lightsource = ent_create( "lightbulb.mdl", vector(x,y,z), NULL); //create lightbulb
set(lightsource,LIGHT);    //make it brightly lit
lightsource.lightrange = greater_than_zero;   //make it light up other stuff


Color of light (both dynamic) is adjusted by entities red, green, blue properties.

Dunno how to do spotlights yet sorry.






"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial