Arma 3
Road Flare DEMO
79 Comments
Anfo 16 Dec, 2019 @ 6:48pm 
Yeah, thought so too. Will use RemoteExec
ALIAScartoons  [author] 16 Dec, 2019 @ 2:35am 
@Anfo
Both should work, however the one with BIS_fnc_MP might stop working at some point, far as i know on BIS' book that command is obsolete
Anfo 14 Dec, 2019 @ 10:32pm 
Hi Alias
Can you confirm please, in init of object placed in editor, do we use:

null=[[this,"static"],"AL_roadflare\static_flare.sqf"] remoteExec ["execVM",0,true];

Or..

null=[[[this],"AL_roadflare\static_flare.sqf"],"BIS_fnc_execVM",true,true] spawn BIS_fnc_MP;

One is listed Steam workshop, the other in ini_roadflare.sqf
ALIAScartoons  [author] 20 Dec, 2018 @ 12:15am 
@GrannyMan
Yeah, is the EH, you need to double check the classname you used for flares, the script should trigger only when you use those chemlights or whatever you set up to work as road lfares
GrannyMan 19 Dec, 2018 @ 8:33pm 
Hey Alias, I get an error with this script every time I shoot a gun.
\AL_roadflare\static_flare.sqf, line 90?
Error undefined variable in expression: _culoare_elem
and
\AL_roadflare\al_roadflare_effect.sqf, line 156
Error undefined variable in expression: _culoare_elem

Any idea what could be causing this?
Anfo 11 Oct, 2018 @ 5:26am 
@alias
Thanks for the advice, have replaced the RHS objects with 1m texture objects and haven't seen errors since.
ALIAScartoons  [author] 11 Oct, 2018 @ 3:36am 
@Anfo
If the class name for object you use is correct that shouldn't be the problem. Could be that the object you use to throw is deleted very fast and something else is placed instead, i don't know how flares in RHS work. Do you have same issue if you use another object?
Anfo 11 Oct, 2018 @ 2:44am 
Alias, although there is every chance I have implemented something incorrectly, I still get these script errors which mean when I run a mission from Eden sometimes the flares work, sometime they don't:
https://pastebin.com/bZi5ZWJ9
Any thoughts? Could it be the object I've chosen to be the 'flare'?
"rhs_weapon_rsp30_red"
ALIAScartoons  [author] 9 Oct, 2018 @ 2:01am 
@Anfo
In theory there is no limit, tho i never tested it but should work fine.
Anfo 9 Oct, 2018 @ 1:06am 
@alias
Is there a maximum <al_Roadflare_lifetime> that I cannot exceed? Is 7200 too high?
ALIAScartoons  [author] 28 Sep, 2018 @ 9:17am 
@kullervo
Compare the flicker you get on your map with the flicker you get on altis in demo mission and see if there is any difference
kullervo 28 Sep, 2018 @ 8:48am 
thanks for a quick response though :-)
kullervo 28 Sep, 2018 @ 8:47am 
i'll do more testing, it's on a ww2 map so idk, maybe that's it
ALIAScartoons  [author] 28 Sep, 2018 @ 8:39am 
@kullervo
You need to tweak the script. I supose depends on your display refresh or someting cuz on my side the flickering is fine. What map you are trying to use it on? Maybe it has something to do with the post-processing implemented there.
kullervo 28 Sep, 2018 @ 7:01am 
just wondering if there's a way to change or remove the flickering effect
kullervo 28 Sep, 2018 @ 6:58am 
Cool, tested it, works fine. The flickering light effect is a bit hard on the eyes though, might cause someone to have seizures.
ALIAScartoons  [author] 26 Sep, 2018 @ 4:15pm 
@kullervo
Small tweak to prevent issues when flares or chemlights are thrown on rocks, however if the rocks/boulders have bad geometry/collision most likely the thrown object is going to fell through.
I've tested on rocks on Atlis and works fine.
For now the script is updated only on STEAM.
kullervo 18 Sep, 2018 @ 1:57am 
thank you very much!
ALIAScartoons  [author] 18 Sep, 2018 @ 1:51am 
@kullervo
I think i know what's the problem. I will update the script with an workaround ASAP. ... :) dam arma rocks
kullervo 17 Sep, 2018 @ 2:51pm 
Sorry, it's a little hard to explain but, it's just that the flare doesn't activate when I throw it on a boulder. Or any other object, except the ground.
kullervo 17 Sep, 2018 @ 2:51pm 
Oh no, I'm just throwing it on a surface that is not the terrain's ground level, like, on a big boulder in game, I'm not trying to make an editor placed object be the flare.
ALIAScartoons  [author] 17 Sep, 2018 @ 6:06am 
@kullervo
I am not sure what you asking. You are trying to create a road flare using an object placed from editor and you try to place it above the ground and you don't see the effect, right?
Make sure you object doesn't fall trhought the ground or something, i also didn't test it in or above the water
kullervo 17 Sep, 2018 @ 5:18am 
Is it supposed to not activate on certain objects such as rocks? It only seems to activate on the ground, and not editor place objects such as boulders..
ALIAScartoons  [author] 23 Jun, 2018 @ 2:29pm 
Script update.
Changes:
- added a small fail safe to prevent multiple execution in MP for the same object and the script is executed from its init field
- tweaked SFXs
Jimmakos 30 Mar, 2018 @ 10:48am 
@ALIAScartoons
Please let us know if you find a work around.
ALIAScartoons  [author] 30 Mar, 2018 @ 9:57am 
@Jimmakos
Thanks for testing it. I will try to see what's up with that ASAP
Jimmakos 30 Mar, 2018 @ 6:56am 
@ALIAScartoons
sorry, i ment the edit suggested below;
Script works flawless.
ALIAScartoons  [author] 30 Mar, 2018 @ 6:53am 
@Jimmakos
What doesn't work? The script itself or the edit suggested bellow?
Jimmakos 30 Mar, 2018 @ 6:49am 
Does not work ˅˅
At least in MP
ALIAScartoons  [author] 23 Mar, 2018 @ 4:57am 
Someone asked how to make all chemlights works as roadflares.
You need to edit static_flare.sqf file, replace lines 50,51,52 with these:
case "Chemlight_blue": {_al_color_flare = [1,0,0];_al_roadflare_check = true;};
case "Chemlight_yellow": {_al_color_flare = [1,0,0];_al_roadflare_check = true;};
case "Chemlight_green": {_al_color_flare = [1,0,0];_al_roadflare_check = true;};

And make al_chem false in ini_roadflare.sqf
al_chem = false;
publicVariable "al_chem";

I didn't have time to test, let me know if works, thanks!
ALIAScartoons  [author] 27 Jan, 2018 @ 11:20pm 
@D-Trox
You missing something.
al_Roadflare_brightness is defined in in ini_roadflare before script starts, check and see what prevents that variable to be initialized, or even better insert a delay (sleep 5;) in static_flare at beginning to give time for all variables to propagate, maybe if you have too many things going on the variables are not broadcasted in time
[DEV]D-Trox 27 Jan, 2018 @ 4:24pm 
On server i got a error ,
Error undefined variable in expression: al_Roadflare_brightness
.....\user\mpmissions\mission\AL_roadflare\static_flare.sqf, line 41

i dont know why in mp it not work, its the first time you see this issue ?
[DEV]D-Trox 27 Jan, 2018 @ 8:00am 
thanks alot , continute your good job :)
ALIAScartoons  [author] 27 Jan, 2018 @ 7:57am 
@D-Trox
Yeah buddy, have fun!
[DEV]D-Trox 27 Jan, 2018 @ 7:52am 
yeah i find it , it work thank you
and if my server are not monetized can i use your script on it ?
ALIAScartoons  [author] 27 Jan, 2018 @ 7:41am 
@D-Trox
in ini_roadflare there is a parameter you can tweak called al_Roadflare_lifetime. Edit the value as you need.
For more info check out the tutorials
https://www.youtube.com/watch?v=3BtxTUchsUs&list=PLod_PhpAOFQhpTRYpoVPwiikPN1aoboFs&index=12
https://www.youtube.com/watch?v=-57zQci_jNc&list=PLod_PhpAOFQhpTRYpoVPwiikPN1aoboFs&index=26
[DEV]D-Trox 27 Jan, 2018 @ 7:24am 
really cool
how can we make the roadflare stay infinite time ?
Kane 17 Jan, 2018 @ 11:01am 
@ALIAScartoons I'll tell you if i need help. But for the moment I'm fine. ;)
ALIAScartoons  [author] 17 Jan, 2018 @ 10:40am 
@Kane
Let me know if you need assistance
ALIAScartoons  [author] 17 Jan, 2018 @ 9:25am 
@Kane
Thanks mate! Yeah, one of the last Arma updates fixed some issues related to rendering particles.
A work around will be to decrease the rubber factor for particles to be less influenced by wind.
Kane 17 Jan, 2018 @ 7:35am 
I just checked out the new update and i must say: It's beatifull! Works fine with the monsoonscript. The only thing that should be mentioned is that the smoke is flying away quite fast because of the storm.
ALIAScartoons  [author] 30 Dec, 2017 @ 4:18am 
Script update.
Direct download link not updated yet, will do so ASAP. Until then use the STEAM version.
! I didn't have time to test it on dedicated so please let me know if everything works fine. Thank you!

Changes:
* fixed issues with light
* cleaned up the script
* script structure changed but the usage is the same

Have fun! :)
ALIAScartoons  [author] 18 Sep, 2017 @ 1:49am 
@PHANTOM
I saw same issue with vanilla chemlights, either the object itself or the source light sinks a little in the floor, that's why my light spawns a little over the surphace of the gorund, tho i didn't test it inside buildings, it might need adjustments. Thank you for letting me know!
PHANTOM 16 Sep, 2017 @ 12:01pm 
Nice update, one small issue, throwing flares works like a charm on the floor, but once you throw a flare inside a house the flare seems to endlessly burn and not give off any light.
ALIAScartoons  [author] 13 Jul, 2017 @ 8:54pm 
Short video explaining what's new in the script
https://www.youtube.com/watch?v=3BtxTUchsUs
ALIAScartoons  [author] 12 Jul, 2017 @ 9:56am 
Script update.
* Sound fixes
* Now the throwable item working as road flare is customizable
* Few tweaks and optimization to make it more JIP friendly

For more info check out the demo mission and read the comment or wait for the video update.
Direct download link on armaholic will be updated ASAP.
Have fun!
Kane 23 Feb, 2017 @ 7:22am 
@Fetzen did you throw the chemlights via the advanced throwing feature? Or did you try both the advanced and the normal throwing while playing with ACE?
ALIAScartoons  [author] 23 Feb, 2017 @ 1:58am 
@Fetzen
Thanks for the feednack buddy!
Sry I don't have too much experience with ACE i can't help you there.
Fetzen 23 Feb, 2017 @ 1:42am 
they introduced HI chemlights (which probably are tweaked the same way you do it) and handheld signals (which are very bright lights). But apart from that normal chemlights still exist, but the can also be handheld.

anyway i hear from others that they run this with ace and have no problem... i wonder now where my issue comes from. maybe i have a differnt version of CBA... will try with/without ONLY CBA next. see what happens then... a bit weird this
ALIAScartoons  [author] 22 Feb, 2017 @ 9:25am 
@Fetzen
ACE has built in flares FAIK. Not sure if they are road flares tho. Could be only signal flares.

Yeah, the pressure can be diminished, i will have look.