Jump to content
Sign in to follow this  
Luft08

What do we use as a light source inside buildings?

Recommended Posts

I have a mission using the Global Mobilization DLC. Sometimes the missions are at night and the inside of buildings are dark. There use to be a light entity but I guess the BIS libraries changed or something. The old way I use to light up the inside of buildings no longer works and I was wondering how it is done now?

 

Thanks.

Share this post


Link to post
Share on other sites

 

There is probably a much better way, but the following worked quite well in a multiplayer mission:
 

I placed a small placeholder object at the desired position and named it myLightPos1.

Then, I added the following code in initPlayerLocal.sqf:
 

_myLight = "#lightpoint" createVehicleLocal getPos myLightPos1;
_myLight setLightColor [0,0,0]; 
_myLight setLightAmbient [0.8,0.3,0.1]; 
_myLight setLightBrightness 2.45;
deleteVehicle myLightPos1;


 

I used the following page to set the values for setLightAmbient[]:
https://www.tug.org/pracjourn/2007-4/walden/color.pdf

 

  • Like 2

Share this post


Link to post
Share on other sites

You can also experiment with these objects, which are a kind of spotlight used on landing points.
I use them a lot as additional strobe/position lights for vehicles (green and red) and also as off-road lights in front of vehicles (orange).

"reflector_cone_01_narrow_red_f"
"reflector_cone_01_narrow_green_f"
"reflector_cone_01_narrow_orange_f"

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×