drunken officer 18 Posted July 26, 2011 Hello all. I created a building. Inside this building i created a lampe. With a *.rvmat file i created a light point. Yes it looks nice. But my problem is, only this point is brightly. But i need a light which "flash" / illuminate the whole room! Like a lamp on the street. Can somebody help me? Share this post Link to post Share on other sites
abdecken 1 Posted July 28, 2011 (edited) try making a light point and deleting and remaking it with a script like this: #start ~3 deleteVehicle light; ~3 light = "#lightpoint" createVehicle getpos boat1; light setLightBrightness 0.02; light setLightAmbient[1.0, 0.0, 0.0]; light setLightColor[1.0, 0.0, 0.0]; light lightAttachObject [boat1, [0,0,0]]; goto "start"; Edited July 28, 2011 by abdecken solved :) Share this post Link to post Share on other sites
drunken officer 18 Posted July 28, 2011 try making a light point and deleting and remaking it with a script like this: I have to copy this script in the rvmat or in the config? Share this post Link to post Share on other sites
[aps]gnat 28 Posted July 30, 2011 Maybe in your Config; This code is from BIS own buildings class Reflectors { class MainLight { color[] = {0.9,0.8,0.8,1}; ambient[] = {0.1,0.1,0.1,1}; position = "Source_MainLight"; direction = "Direction_MainLight"; hitpoint = "MainLight"; selection = "LightFlare"; size = 5; brightness = 3; period[] = {4.6,2.4}; }; }; Looking at it, theres probably at least 2 named points in the MEMORY lod, Source_MainLight and Direction_MainLight Share this post Link to post Share on other sites
max power 21 Posted August 2, 2011 Yeah, I guess if you put a memory point where the light should be, you can config it as a light source. Share this post Link to post Share on other sites
drunken officer 18 Posted August 2, 2011 Okay, i found it and it works to 50%. The "class reflectors" works and blind me, when i look into the light. When i'm under the lampe, i see my character illuminated. But on the floor / wall i see no lights! Objects i put into the building with proxy are illuminated too. WHEN i move the object in the editor under a lamp, which is orginallys on map, i can see the light on my floors. Class MarkerLights shining through the walls. The walls outside are shining like a sun... :D I try to switch to "Class CargoLights", and then everything is dark. Can somebody help me? Share this post Link to post Share on other sites
max power 21 Posted August 3, 2011 I think that no light sources other than the sun cast shadows, so I'm not sure it's possible to make it so that lights don't shine through walls. Maybe there is a clever way to build a 'volumetric light' out of self illuminated planes and reflectors. Share this post Link to post Share on other sites