Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Light Switch (https://forums.graalonline.com/forums/showthread.php?t=70215)

xAndrewx 11-19-2006 09:03 AM

Light Switch
 
HTML Code:

//#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


All times are GMT +2. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.