Jump to content
Sign in to follow this  
thetrooper

Help with Police Sirens

Recommended Posts

I have two actions. One for Beacons On and another with Siren on.

When I select Siren on I'm trying to get Beacons to work as well, but now working.

Below script for Beacons to run

_this addAction ["Beacons On",{(_this select 0) animate ["BeaconsStart",1]},[],50,false,true,"","_target animationPhase 'BeaconsStart' < 0.5 AND Alive(_target) AND driver _target == _this"];

Next script in siren.sqf

_car = _this select 0;
_action = _this select 2;
_car removeaction _action;
Copsiren = true;
_car addAction ["Siren Off",{_this execvm "SirenOff.sqf"},[],53,false,true,"","Alive(_target) AND driver _target == _this"];
while {Copsiren} do {
_car say3D "AlarmCar";
sleep 1.95;
};

If I combine the two it doesn't work. Does anyone know how to do this?

Also if I want to script it say in the init file to start with siren on, would the script below work?

car action ["Siren On", car]; 

Share this post


Link to post
Share on other sites

You mean like this: http://www.youtube.com/watch?v=WOIYEkUIm2E&nofeather=True ?

I used 3 scripte. the first one add the lightbar.

The 2. script start the lightbar animation. The i add a action menue to start the sirenes. You can block the multiple adding with a variable. Use the waitUntil command.

The 3. Script add the menue to turn off, delete the action menue and create a new one.

I can post you the script, when i'm back at home.

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  

×