Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Lights Please...
Lights Please...
2001-11-24, 9:30 AM #1
Ok, what i need is a cog that when you activate a switch, it will turn on some lights...would you use ghost objects or what? if someone could help me it would be appreciated!!!

------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download
2001-11-24, 9:38 AM #2
You could use dynamic lighting. You could also use sector lighting. But dynamic lighting would look more realistic.

This uses dynamic lighting. (Ghosts)

#11/2001 GBK
Symbols
Message Activated
Surface Switch
Thing Ghost
Int I=0 Local
End
Code
Activated:
If(Getsenderref() == Switch) {
If(I == 0) { I = 1;
Setthinglight(Ghost, 1, 0.1); }
Else { I = 0;
Setthinglight(Ghost, 0, 0.1); } }
Stop;
End

Donno if it works, I just typed it into the box. But it should... [http://www.plauder-smilies.com/spiny.gif]

BTW, youll need to add the 'Emits light' flag to your ghost, as well as the 'Extra light' variable.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-24, 9:54 AM #3
hey thnks it works!!!

------------------
"Everyone Dies..."
-Fett
"Everyone Dies..."
-Fett

My Website
Brad's Highschool Level
Unfinished Levels For Download

↑ Up to the top!