chris330 0 Posted November 6, 2009 Hi! I'd like to make a disco light addon and I was wondering how difficult this is? I had trouble doing it in OFP but managed it in the end but have long forgotten how. Can I simply make a plain old object addon and add a light to it in some way? Is there someway you can adjust the beam spread of the light and the direction it 'points' in. How is this done? Thanks for any help you can offer. Share this post Link to post Share on other sites
Aqu 0 Posted November 6, 2009 Hi!I'd like to make a disco light addon and I was wondering how difficult this is? I had trouble doing it in OFP but managed it in the end but have long forgotten how. Can I simply make a plain old object addon and add a light to it in some way? Is there someway you can adjust the beam spread of the light and the direction it 'points' in. How is this done? Thanks for any help you can offer. Well in vehicles at least you can make the lights putting Reflectors class into the custom class in CfgVehicles (i.e if your object is MyDiscoBall)... class CfgVehicles { class MyDiscoBall { //... class Reflectors { class Left { color[]={0.800000,0.800000,1.000000,1.000000}; ambient[]={0.070000,0.070000,0.070000,1.000000}; position="L svetlo"; direction="konec L svetla"; hitpoint="L svetlo"; selection="L svetlo"; size=1; brightness=1.000000; }; class Right { color[]={0.800000,0.800000,1.000000,1.000000}; ambient[]={0.070000,0.070000,0.070000,1.000000}; position="P svetlo"; direction="konec P svetla"; hitpoint="P svetlo"; selection="P svetlo"; size=1; brightness=1.000000; }; }; //... }; }; Left and Right can be any freely chosen names...Afaik they are not limited in count. I don't know how you could limit the spread, but you could try adding some limiting object(s) into the shadow lod so that each light shines through a small hole only. Share this post Link to post Share on other sites
chris330 0 Posted November 6, 2009 Ooohh that's great! Thanks just what I wanted to get going cheers pal I'll have a go trying that with a static object thanks! :) Share this post Link to post Share on other sites