Jump to content
Sign in to follow this  
Mordacai

Ambient Lighting from Arma 2

Recommended Posts

I want to port my A2 missions to A3.

This is a code from an A2 scriptor to set ambient lights on buildings, barracks and so forth. Works like a charm in A2 but I cannot get it to work in A3.
Needs a FUNCTION placed on the map and for the life of me, I cannot find FUNCTION in Eden editor.

Using CUPS so I can locate Game Logics---cups.

Basically, set down a Game Logic and put in the init:

light = "#lightpoint" createVehicleLocal position this; light setLightBrightness 0.1; light setLightAmbient[0.2, 0.0, 0.0]; light setLightColor[1.0, 0.0, 0.0]; light lightAttachObject [this, [0,0,2]]; 

Will this code work with A3 and how can I do so?

Thank you in advance.

Share this post


Link to post
Share on other sites

RESOLVED

I found the solution to this by placing a GAME LOGIC on the map with everything left blank.

This line will increase or decrease brightness, which I had to do:

setLightBrightness 0.1

This sets the color to RED

light setLightColor[1.0, 0.0, 0.0];

This sets the color to BLUE

light setLightColor[0.0, 1.0, 0.0];

This sets the color to GREEN

light setLightColor[0.0, 0.0, 1.0];

 


 

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  

×