Jump to content
Sign in to follow this  
foxykid09

Police lightbar on roof?

Recommended Posts

Hi there,i've been searching everywhere for a script or something that lets me attach a light bar to the roof of a SUV or something? Need desperate help for this as it is for my mission (obviously)

Cheers

Share this post


Link to post
Share on other sites

Name the vehicle truck. In your init.sqf put:

truck animate ["HidePolice", 0];

It would be better to make an sqf file.

Share this post


Link to post
Share on other sites

It's so weird nothing just seems to work like the lightbar doesn't even show up?

Share this post


Link to post
Share on other sites

Doesnt work when you put it in the init of the truck.

In your init.sqf file or in the trucks init line:

[yourtruckname] execVM "lightBar.sqf"

lightBar.sqf

_truck= _this select 0;

_truck animate ["HidePolice", 0];
_truck addAction ["<t color=""#001eff"">" + "Strobes On" ,{(_this select 0) animate ["BeaconsStart",1]},[],50,false,true,"","_target animationPhase 'BeaconsStart' < 0.5 && Alive(_target) && driver _target == _this"];
_truck addAction ["<t color=""#001eff"">" + "Strobes Off" ,{(_this select 0) animate ["BeaconsStart",0]},[],51,false,true,"","_target animationPhase 'BeaconsStart' > 0.5 && Alive(_target) && driver _target == _this"];
_truck addAction ["<t color=""#001eff"">" + "Siren On" , {(_this select 0) say3d "alarmCar"}, [], 52, false, true, "", "driver _target == _this"];  

Edited by cobra4v320

Share this post


Link to post
Share on other sites

lightBar.sqf

_truck= _this select 0;

_truck animate ["HidePolice", 0];
_truck addAction ["<t color=""#001eff"">" + "Strobes On" ,{(_this select 0) animate ["BeaconsStart",1]},[],50,false,true,"","_target animationPhase 'BeaconsStart' < 0.5 && Alive(_target) && driver _target == _this"];
_truck addAction ["<t color=""#001eff"">" + "Strobes Off" ,{(_this select 0) animate ["BeaconsStart",0]},[],51,false,true,"","_target animationPhase 'BeaconsStart' > 0.5 && Alive(_target) && driver _target == _this"];
_truck addAction ["<t color=""#001eff"">" + "Siren On" , {(_this select 0) say3d "alarmCar"}, [], 52, false, true, "", "driver _target == _this"];  

Thanks a lot! I searched several days on how to enable this flashing animation. :D

Do you know where I can find / modify the blinking animation of the lightbar? like the pattern, colour etc?

Arent these some kind of different setObjectTexture-commands on the hiddenselections of the lightbar?

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  

×