Jump to content
Sign in to follow this  
panther42

FYI Anti-Collision Lights for Aircraft

Recommended Posts

This is more of an FYI post, but is scripting related since I had to make script changes to get this one working again in Arma 2:

Anti-Collision Lights for Aircraft

I believe it stopped working around the 1.60 patch, but not sure as I didn't mess around with it much. Author is MIA from the forums. I'm posting here, as there seems to be a bit more traffic, than the Armaholic Forums(no offense)

I had tinkered around with it trying to figure out what the hell broke it...Finally found the solution.

If anyone is still interested in this one, I can post the changes necessary.

The original is dependent on WarFX : Blastcore

I have also the necessary changes for a version which is NON-DEPENDENT of WarFX.

I'm running 1.62 with latest beta.

Share this post


Link to post
Share on other sites

I would definitely be interested to see what you did.

Share this post


Link to post
Share on other sites

Not a problem Harzach, I will post code and explanation when I'm home from work

Share this post


Link to post
Share on other sites

First, some findings:

setLightColor[R, G, B]: should set the light color according to values between 0 and 1. IE [1,0,0] is red, [0,1,0] is green, [0,0,1] is blue and [1,1,1] is white. Percentages of each give you different shades. This seems to work fine in some instances, like putting a light in a tent, or cargo space of a chinook, but didn't work in this script.(at least in all the tests I tried)

Values for R, G, B must be "regular" R, G, B color values. [255,0,0] is red, [0,255,0] is green, [0,0,255] is blue, etc...The original author used these

setLightAmbient[R, G, B]: is the same as setLightColor. Values between 0 and 1 for each. I believe these work as suspected.

lightAttachObject seems to be broken when dealing with vehicles/aircraft. I had to first attachTo, then use lightAttachObject. I also removed this from the particles created.

Here is an example of the "untouched" UH60.sqf from the original scripts: (notice half is commented out by the author(green) - I believe this was in while the videos were made, but could be wrong)

_this = _this select 0;
while {alive _this} do
{

_lightOn = _this getVariable "lightOn";

if(_lightOn)then
{

/***********************************************************************
* Frente lado direito Strobe branco
***********************************************************************/	
[color="#008000"]/*_color = [255,255,255];
_brightness = 0.001;
_size = 0.2;

_strobe1 = "#particlesource" createVehicleLocal position _this;
_strobe2 = "#particlesource" createVehicleLocal position _this;

_strobe1 lightAttachObject [_this, [0,0,0]];
_strobe1 setParticleCircle [0, [0, 0, 0]];
_strobe1 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe1 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe1 setdropinterval 0.1;

_strobe2 lightAttachObject [_this, [0,0,0]];
_strobe2 setParticleCircle [0, [0, 0, 0]];
_strobe2 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe2 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [-1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe2 setdropinterval 0.1;

_light1 = "#lightpoint" createVehicleLocal position _this;
_light1 lightAttachObject [_this, [1.32, 3.7, -2]];
_light1 setlightcolor _color; 
_light1 setlightambient [1,1,1];
_light1 setlightbrightness _brightness;

_light2 = "#lightpoint" createVehicleLocal position _this;
_light2 lightAttachObject [_this, [-1.32, 3.7, -2]];
_light2 setlightcolor _color;
_light2 setlightambient [1,1,1];
_light2 setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe1;
deletevehicle _strobe2;
deletevehicle _light1;
deletevehicle _light2;
sleep 0.02;*/

/***********************************************************************
* Frente lado esquerdo Strobe branco
***********************************************************************/	
/*_color = [255,255,255];
_brightness = 0.001;
_size = 0.2;

_strobe1 = "#particlesource" createVehicleLocal position _this;
_strobe2 = "#particlesource" createVehicleLocal position _this;

_strobe1 lightAttachObject [_this, [0,0,0]];
_strobe1 setParticleCircle [0, [0, 0, 0]];
_strobe1 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe1 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe1 setdropinterval 0.1;

_strobe2 lightAttachObject [_this, [0,0,0]];
_strobe2 setParticleCircle [0, [0, 0, 0]];
_strobe2 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe2 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [-1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe2 setdropinterval 0.1;

_light1 = "#lightpoint" createVehicleLocal position _this;
_light1 lightAttachObject [_this, [1.32, 3.7, -2]];
_light1 setlightcolor _color;
_light1 setlightambient [1,1,1];
_light1 setlightbrightness _brightness;

_light2 = "#lightpoint" createVehicleLocal position _this;
_light2 lightAttachObject [_this, [-1.32, 3.7, -2]];
_light2 setlightcolor _color;
_light2 setlightambient [1,1,1];
_light2 setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe1;
deletevehicle _strobe2;
deletevehicle _light1;
deletevehicle _light2;
sleep 1;*/[/color]

/***********************************************************************
* Barriga - Strobe vermelho
***********************************************************************/	
_color = [255,0,0];
_brightness = 0.003;
_size = 0.2;	

_strobe = "#particlesource" createVehicleLocal position _this;
_strobe lightAttachObject [_this, [0,0,0]];
_strobe setParticleCircle [0, [0, 0, 0]];
_strobe setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -3.7, -2.2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe setdropinterval 0.1;

_light = "#lightpoint" createVehicleLocal position _this;
_light lightAttachObject [_this, [0, -3.7, -2.2]];
_light setlightcolor _color;
_light setlightambient [1,1,1];
_light setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe;
deletevehicle _light;
sleep 0.02;

_size = 0.4;
_strobe = "#particlesource" createVehicleLocal position _this;
_strobe lightAttachObject [_this, [0,0,0]];
_strobe setParticleCircle [0, [0, 0, 0]];
_strobe setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -3.7, -2.2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe setdropinterval 0.1;

_light = "#lightpoint" createVehicleLocal position _this;
_light lightAttachObject [_this, [0, -3.7, -2.2]];
_light setlightcolor _color;
_light setlightambient [1,1,1];
_light setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe;
deletevehicle _light;
sleep 3;

/***********************************************************************
* Estabilizador traseiro - Strobe branco
***********************************************************************/	
_color = [255,255,255];
_brightness = 0.005;
_size = 0.1;

_strobe3 = "#particlesource" createVehicleLocal position _this;
_strobe3 lightAttachObject [_this, [0,0,0]];
_strobe3 setParticleCircle [0, [0, 0, 0]];
_strobe3 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe3 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -8.2, 1.5], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe3 setdropinterval 0.1;

_light3 = "#lightpoint" createVehicleLocal position _this;
_light3 lightAttachObject [_this, [0, -8.2, 1.5]];
_light3 setlightcolor _color;
_light3 setlightambient [1,1,1];
_light3 setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe3;
deletevehicle _light3;
sleep 0.02;

_size = 0.4;
_strobe3 = "#particlesource" createVehicleLocal position _this;
_strobe3 lightAttachObject [_this, [0,0,0]];
_strobe3 setParticleCircle [0, [0, 0, 0]];
_strobe3 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe3 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -8.2, 1.5], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe3 setdropinterval 0.1;

_light3 = "#lightpoint" createVehicleLocal position _this;
_light3 lightAttachObject [_this, [0, -8.2, 1.5]];
_light3 setlightcolor _color;
_light3 setlightambient [1,1,1];
_light3 setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe3;
deletevehicle _light3;
};

sleep 2;

};




And the modified version of UH60.sqf which works: (commented section removed for testing all - replace original with this copy)

Uses War FX

UH60.sqf

_this = _this select 0;
while {alive _this} do
{

_lightOn = _this getVariable "lightOn";

if(_lightOn)then
{

/***********************************************************************
* Frente lado direito Strobe branco
***********************************************************************/	
_color = [255,255,255];
_brightness = 0.001;
_size = 0.2;

_strobe1 = "#particlesource" createVehicleLocal position _this;
_strobe2 = "#particlesource" createVehicleLocal position _this;

_strobe1 attachto [_this, [0,0,0]];
_strobe1 setParticleCircle [0, [0, 0, 0]];
_strobe1 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe1 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe1 setdropinterval 0.1;

_strobe2 attachTo [_this, [0,0,0]];
_strobe2 setParticleCircle [0, [0, 0, 0]];
_strobe2 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe2 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [-1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe2 setdropinterval 0.1;

_light1 = "#lightpoint" createVehicleLocal position _this;
_light1 attachTo [_this, [0,0,0]];
_light1 lightAttachObject [_this, [1.32, 3.7, -2]];
_light1 setlightcolor _color; 
_light1 setlightambient [1,1,1];
_light1 setlightbrightness _brightness;

_light2 = "#lightpoint" createVehicleLocal position _this;
_light2 attachTo [_this, [0,0,0]];
_light2 lightAttachObject [_this, [-1.32, 3.7, -2]];
_light2 setlightcolor _color;
_light2 setlightambient [1,1,1];
_light2 setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe1;
deletevehicle _strobe2;
deletevehicle _light1;
deletevehicle _light2;
sleep 0.02;

/***********************************************************************
* Frente lado esquerdo Strobe branco
***********************************************************************/	
_color = [255,255,255];
_brightness = 0.001;
_size = 0.2;

_strobe1 = "#particlesource" createVehicleLocal position _this;
_strobe2 = "#particlesource" createVehicleLocal position _this;

_strobe1 attachTo [_this, [0,0,0]];
_strobe1 setParticleCircle [0, [0, 0, 0]];
_strobe1 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe1 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe1 setdropinterval 0.1;

_strobe2 attachTo [_this, [0,0,0]];
_strobe2 setParticleCircle [0, [0, 0, 0]];
_strobe2 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe2 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [-1.32, 3.7, -2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe2 setdropinterval 0.1;

_light1 = "#lightpoint" createVehicleLocal position _this;
_light1 attachTo [_this, [0,0,0]];
_light1 lightAttachObject [_this, [1.32, 3.7, -2]];
_light1 setlightcolor _color;
_light1 setlightambient [1,1,1];
_light1 setlightbrightness _brightness;

_light2 = "#lightpoint" createVehicleLocal position _this;
_light2 attachTo [_this, [0,0,0]];
_light2 lightAttachObject [_this, [-1.32, 3.7, -2]];
_light2 setlightcolor _color;
_light2 setlightambient [1,1,1];
_light2 setlightbrightness _brightness;

sleep 0.02;
deletevehicle _strobe1;
deletevehicle _strobe2;
deletevehicle _light1;
deletevehicle _light2;
sleep 1;

/***********************************************************************
* Barriga - Strobe vermelho
***********************************************************************/	
_color = [255,0,0];
_brightness = 0.003;
_size = 0.2;	

_strobe = "#particlesource" createVehicleLocal position _this;
_strobe attachTo [_this, [0,0,0]];
_strobe setParticleCircle [0, [0, 0, 0]];
_strobe setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -3.7, -2.2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe setdropinterval 0.1;

_light = "#lightpoint" createVehicleLocal position _this;
_light attachto [_this,[0,0,0]];
_light lightAttachObject [_this, [0, -3.7, -2.2]];
_light setlightcolor _color;
_light setlightambient [1,1,1];
_light setlightbrightness _brightness;


sleep 0.02;
deletevehicle _strobe;
deletevehicle _light;
sleep 0.02;

_size = 0.4;
_strobe = "#particlesource" createVehicleLocal position _this;
_strobe attachTo [_this, [0,0,0]];
_strobe setParticleCircle [0, [0, 0, 0]];
_strobe setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -3.7, -2.2], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe setdropinterval 0.1;

_light = "#lightpoint" createVehicleLocal position _this;
_light attachTo [_this, [0,0,0]];
_light lightAttachObject [_this, [0, -3.7, -2.2]];
_light setlightcolor _color;
_light setlightambient [1,1,1];
_light setlightbrightness _brightness;


sleep 0.02;
deletevehicle _strobe;
deletevehicle _light;
sleep 2;

/***********************************************************************
* Estabilizador traseiro - Strobe branco
***********************************************************************/	
_color = [255,255,255];
_brightness = 0.005;
_size = 0.1;

_strobe3 = "#particlesource" createVehicleLocal position _this;
_strobe3 attachTo [_this, [0,0,0]];
_strobe3 setParticleCircle [0, [0, 0, 0]];
_strobe3 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe3 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -8.2, 1.5], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe3 setdropinterval 0.1;

_light3 = "#lightpoint" createVehicleLocal position _this;
_light3 attachTo [_this, [0,0,0]];
_light3 lightAttachObject [_this, [0, -8.2, 1.5]];
_light3 setlightcolor _color;
_light3 setlightambient [1,1,1];
_light3 setlightbrightness _brightness;


sleep 0.02;
deletevehicle _strobe3;
deletevehicle _light3;
sleep 0.02;

_size = 0.4;
_strobe3 = "#particlesource" createVehicleLocal position _this;
_strobe3 attachTo [_this, [0,0,0]];
_strobe3 setParticleCircle [0, [0, 0, 0]];
_strobe3 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe3 setParticleParams [["warfxPE\particleeffects\SparksEffect\SparksEffect", 1, 0, 1], "", "Billboard", 1, 0.02, [0, -8.2, 1.5], [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 0.5, -5], [1, 1, 0.5, -5], [1, 1, 0.5, -5]], [1], 1, 0, "", "", _this];
_strobe3 setdropinterval 0.1;

_light3 = "#lightpoint" createVehicleLocal position _this;
_light3 attachTo [_this, [0,0,0]];
_light3 lightAttachObject [_this, [0, -8.2, 1.5]];
_light3 setlightcolor _color;
_light3 setlightambient [1,1,1];
_light3 setlightbrightness _brightness;


sleep 0.02;
deletevehicle _strobe3;
deletevehicle _light3;
};

sleep 2;

};




Here's a testing example I've doctored up so you can use with the model named selections and WITHOUT War FX(most aircraft only have 2 or 3 of the selections):

bily pozicni - white positional

bily pozicni blik - white positional blinking

cerveny pozicni - red positional

cerveny pozicni blik - red positional blinking

zeleny pozicni - green positional

zeleny pozicni blik - green positional blinking

You can also use "nvg_marker" on ground vehicles(those I've tested)

place in init of aircraft: this setVariable ["lightOn",true,true]; nul = [this,"bily pozicni"] execVM "test.sqf";

test.sqf

/*use the following selections: 
bily pozicni -  white positional
bily pozicni blik - white positional blinking
cerveny pozicni - red positional
cerveny pozicni blik - red positional blinking
zeleny pozicni - green positional
zeleny pozicni blik - green positional blinking
execute script: nul = [this,"bily pozicni"] execVM "test.sqf";
*/
private ["_v", "_selection", "_selPos", "_lightOn"];
_v =_this select 0;
_selection = _this select 1;
_selPos = _v selectionPosition _selection;
diag_log format ["%1: %2", _selection,_selpos];

while {alive _v} do
{
_lightOn = _v getVariable "lightOn";

if(_lightOn)then
{	
/***********************************************************************
*
***********************************************************************/
//	Format: [shapeName, AnimationName, Type, TimerPeriod, LifeTime, Position, MoveVelocity, RotationVelocity, Weight, Volume, Rubbing, Size, Color, AnimationPhase, RandomDirectionPeriod, RandomDirectionIntensity, OnTimer, BeforeDestroy, Object] 
//bily pozicni( tail? - white positional[255,255,255],[[1, 1, 1, -5], [1, 1, 1, -5], [1, 1, 1, -5]]), cerveny pozicni (red positional[255,0,0], [[1, 0, 0, -5], [1, 0, 0, -5], [1, 0, 0, -5]]), zeleny pozicni(green positional[0,153,0],[[0, 1, 0, -5], [0, 1, 0, -5], [0, 1, 0, -5]])

_color = [255,255,255];
_brightness = 0.002;	
_size = 0.2;

_strobe1 = "#particlesource" createVehicleLocal position _v;
_strobe2 = "#particlesource" createVehicleLocal position _v;

//_strobe1 lightAttachObject [_this, [0,0,0]];
_strobe1 attachto [_v,[0,0,0],_selection];
_strobe1 setParticleCircle [0, [0, 0, 0]];
_strobe1 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe1 setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal", 16, 13, 2, 0], "", "Billboard", 1, 0.02, _selection, [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 1, -5], [1, 1, 1, -5], [1, 1, 1, -5]], [1000], 1, 0, "", "", _v];
_strobe1 setdropinterval 0.1;

_light1 = "#lightpoint" createVehicleLocal position _v;
_light1 attachto [_v,[0,0,0],_selection];
_light1 setlightcolor _color;
_light1 setlightambient [1,1,1];
_light1 setlightbrightness _brightness;
_light1 lightAttachObject [_v, _selPos];

//_strobe2 lightAttachObject [_v, [0,0,0]];
_strobe2 attachto [_v,[0,0,0],_selection];
_strobe2 setParticleCircle [0, [0, 0, 0]];
_strobe2 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe2 setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal", 16, 13, 2, 0], "", "Billboard", 1, 0.02, _selection, [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 1, -5], [1, 1, 1, -5], [1, 1, 1, -5]], [1000], 1, 0, "", "", _v];
_strobe2 setdropinterval 0.1;

_light2 = "#lightpoint" createVehicleLocal position _v;
_light2 attachto [_v,[0,0,0],_selection];
_light2 setlightcolor _color;
_light2 setlightambient [1,1,1];
_light2 setlightbrightness _brightness;
_light2 lightAttachObject [_v, _selPos];

sleep 0.02;
deletevehicle _strobe1;
deletevehicle _strobe2;
lightDetachObject _light1;
deletevehicle _light1;
lightDetachObject _light2;
deletevehicle _light2;
sleep 0.02;

// Segundo Strobe	
//_color = [255,255,255];
//_brightness = 0.002;	
_size = 0.4;

_strobe1 = "#particlesource" createVehicleLocal position _v;
_strobe2 = "#particlesource" createVehicleLocal position _v;

//_strobe1 lightAttachObject [_v, [0,0,0]];
_strobe1 attachto [_v,[0,0,0],_selection];
_strobe1 setParticleCircle [0, [0, 0, 0]];
_strobe1 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe1 setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal", 16, 13, 2, 0], "", "Billboard", 1, 0.02, _selection, [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 1, -5], [1, 1, 1, -5], [1, 1, 1, -5]], [1000], 1, 0, "", "", _v];
_strobe1 setdropinterval 0.1;

_light1 = "#lightpoint" createVehicleLocal position _v;
_light1 attachto [_v,[0,0,0],_selection];
_light1 setlightcolor _color;
_light1 setlightambient [1,1,1];
_light1 setlightbrightness _brightness;
_light1 lightAttachObject [_v, _selPos];

//_strobe2 lightAttachObject [_this, [0,0,0]];
_strobe2 attachto [_v,[0,0,0],_selection];
_strobe2 setParticleCircle [0, [0, 0, 0]];
_strobe2 setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_strobe2 setParticleParams [["\ca\Data\ParticleEffects\Universal\Universal", 16, 13, 2, 0], "", "Billboard", 1, 0.02, _selection, [0, 0, 0], 0, 10, 7.9, 0.01, [_size], [[1, 1, 1, -5], [1, 1, 1, -5], [1, 1, 1, -5]], [1000], 1, 0, "", "", _v];
_strobe2 setdropinterval 0.1;

_light2 = "#lightpoint" createVehicleLocal position _v;
_light2 attachto [_v,[0,0,0],_selection];
_light2 setlightcolor _color;
_light2 setlightambient [1,1,1];
_light2 setlightbrightness _brightness;
_light2 lightAttachObject [_v, _selPos];



sleep 0.02;
deletevehicle _strobe1;
deletevehicle _strobe2;
lightDetachObject _light1;
deletevehicle _light1;
lightDetachObject _light2;
deletevehicle _light2;

};
sleep 2;

};

If you change the white/red/green positional, make sure to change _color, setLightAmbient, and also the color parameters in setParticleParams. I've included examples in the code.

Also, bily pozicni is the white positional marker, but is placed on the top of the tail of the UH60. The model shows this as red if you look during daylight...

Let me know if you find something different, or need help with anything

Edited by panther42

Share this post


Link to post
Share on other sites

Any idea how Tk make this work in arna 3? I can make it work manually via scripting, but i cant make it work with the addaction. So i cant turn it on or Off. Its always on.

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  

×