Thread: Level Dimmer?
View Single Post
  #2  
Old 08-19-2012, 03:03 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
My last post was kind of sloppy so I'll rewrite it.

You'll want to use seteffect(r,g,b,a); I'm not sure if you're talking about creating a fade effect or not but if you are you'll need to modify the alpha in a loop to get the desired effect. If you want to test it in the offline editor you'll have to use seteffect r,g,b,a;

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
setEffect(0.4,0.9,0.2,.8); // setEffect(red,green,blue,alpha)

Alternatively you can use backpals if you want to get punched in the face.

Last edited by Cubical; 08-19-2012 at 03:16 PM.. Reason: rewriting post
Reply With Quote