Jump to content
Sign in to follow this  
VonNexus

Light particles

Recommended Posts

Hi fellows editor,

basically , while replaying OA campaign, I saw a mission where , inside a C130J, there is a red light which then turns to green ( the mission I am speaking of should be the last, where a HALO jump is featured. Now, I know that things like smoke, fire and light are classidicated as particles stored in some files in the installation path. Basically, how do I put a particle ( in my case I need the red and green light) into a vehicle? Thanks in advice.

Share this post


Link to post
Share on other sites

Pere the Biki article:

Light can be created with command createVehicle with special vehicle class "#lightpoint"

for example:

 
_light = "#lightpoint" createVehicleLocal pos; 
_light setLightBrightness 1.0; 
_light setLightAmbient[0.0, 1.0, 0.0]; 
_light setLightColor[0.0, 1.0, 0.0]; 
_light lightAttachObject [_object, [0,0,0]] 

Share this post


Link to post
Share on other sites
Pere the Biki article:

Light can be created with command createVehicle with special vehicle class "#lightpoint"

for example:

 
_light = "#lightpoint" createVehicleLocal pos; 
_light setLightBrightness 1.0; 
_light setLightAmbient[0.0, 1.0, 0.0]; 
_light setLightColor[0.0, 1.0, 0.0]; 
_light lightAttachObject [_object, [0,0,0]] 

Where ist this supposed to be written?

Share this post


Link to post
Share on other sites

OK, the code for red light is OK. I checked setLightColor page, but still didn't figure out about changing light color. Could anyone post the code for green light?

Share this post


Link to post
Share on other sites

setLightColor[0.0, 0.0, 0.0];

The values are Red, Green, blue. Just play around with them until the hue is right.

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  

×