PDA

View Full Version : Light Switch


xAndrewx
11-19-2006, 09:03 AM
//#CLIENTSIDE
function onCreated()
{
seteffect(0, 0, 0, 0.65);
this.lightOff = true;
}
function onPlayerTouchsMe()
{
this.lightOff = !this.lightOff;
temp.curEffect = (this.lightOff? {0, 0, 0, 0.65}: {0, 0, 0, 0.85});
seteffect(temp.curEffect[0], temp.curEffect[1], temp.curEffect[2], temp.curEffect[3]);
}

Made it for era, change the temp.curEffect value's for the different level effects. Simple yet fun ;)

Chompy
11-19-2006, 06:57 PM
Simple and Nice :p

michael7849
11-23-2006, 05:51 PM
nice