cursor lighting strike

Posts 1–3 of 3 · Page 1 of 1
cursor lighting strike
Code:
_pos = screenToWorld [0.5,0.5];
_bolt = "LightningBolt" createVehicle _pos;
_bolt setdamage 1;
_light = "#lightpoint" createVehicle _pos;
_light setposatl [_pos select 0,_pos select 1,(_pos select 2) + 10];
_light setLightDayLight true;
_light setLightBrightness 300;
_light setLightAmbient [0.05, 0.05, 0.1];
_light setlightcolor [1, 1, 2];

sleep 0.1;
_light setLightBrightness 0;
sleep (random 0.1);

_class = ["lightning1_F","lightning2_F"] call bis_Fnc_selectrandom;
_lightning = _class createVehicle _pos;


_duration = if (isnull cursortarget) then {(3 + random 1)} else {1};

for "_i" from 0 to _duration do {
_time = time + 0.1;
_light setLightBrightness (100 + random 100);
waituntil {
time > _time
};
};

deletevehicle _lightning;
deletevehicle _light;
Credit: Lystic
Quote Originally Posted by NeonSabre123 View Post
ahha @Lystic I thought the looked familiar xD
yep dats my script bro
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us