
06-17-2002, 05:04 AM
|
Banned
|
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
|
|
Quote:
Originally posted by Poogle
Say setred to change the color of the light
NPC Code:
// NPC made from ZicklePop Productions
if (created) {
setimg light2.png;
dontblock;
timeout = 0.01;
}
if (timeout) {
//#CLIENTSIDE
if (playerenters) {
setcoloreffect #t(this.red),#t(this.green),#t(this.blue),#t(this. alpha);
drawaslight;
}
if (startswith(#c ,setred )) {
tokenize #c,red;
setplayerprop #c,Red was set to #t(red).;
}
}
Updated
|
tokenize #c;
setred = #t(0) |
|
|