very easy i think, but this isnt tested.
_vehicle = _this select 0
_flareintervals = _this select 1
_flarestart = getpos _vehicle
"flare" = camcreate "flare" _flarestart
~_flareintervals
"flare" = camcreate "flare" _flarestart
~_flareintervals
"flare" = camcreate "flare" _flarestart
~_flareintervals
"flare" = camcreate "flare" _flarestart
~_flareintervals
"flare" = camcreate "flare" _flarestart
~_flareintervals
"flare" = camcreate "flare" _flarestart
exit
im new to scripting, but something like this will work i think, it needs lots of tweaking though.