this little coffee tag places lights on the polygonobject it is attached to, as long as there are no subobjects. this is the security function to prevent generation whenever the object is selected later on. after the object is selected the script starts.
hope you find it usefull.
btw, changing the lights to other objects is pretty simple by using another object type. see the sdk for a list of types.. search for AllocObject
a textfile contains the coffee code for those who dont have r10