Jump to content
Sign in to follow this  
Deathknight0897

Ambulance Siren Script Help

Recommended Posts

What I have so far from my goggling

So my issue is the script works perfectly however its only client side ie: when i load this mission only the client who activates can hear it i have read many solutions all across the forums including Armaholics and I just cant work it out with my limited scripting knowledge so i would be very grateful if someone could help me out with this i need people within 50 m of the vehicle to hear the siren when its on. iv tried 3d sound which i had no luck with and some function thing but everytime it breaks the siren script please help :D

To test Place Humvee Ambulance from Support or any vehicle for that matter and use the following code:

Rules:

No Trigger's

Use the logic of K.I.S.S (Keep it simple stupid)

Unit Init

_car = [this] execVM "SirenOff.sqf"

Description.ext

class CfgSounds
{
sounds[] = {BeBee,NeNaw,WeWoo};
class BeBee
{
	// how the sound is referred to in the editor (e.g. trigger effects)
	name = "MedSiren1";
	// filename, volume, pitch
	sound[] = {"fx\BeBee.ogg",db + 10, 1};
	titles[] = {0, ""};
};
	class NeNaw
{
	name = "MedSiren2";
	sound[] = {"fx\NeNaw.ogg", db 10, 1};
	titles[] = {0, ""};
};
	class WeWoo
{
	name = "medSiren3";
	sound[] = {"fx\WeWoo.ogg", db 10, 1};
	titles[] = {0, ""};
};

};

SirenOn.sqf

_car = _this select 0;

_car removeaction SirenOn;
0 fadesound 1;
SirenOff = _car addaction ["Siren Off", "SirenOff.sqf"];
Med_Siren = true;
While {Med_Siren} do
{
0 fadesound 1; _car say "WeWoo";
sleep 8;
0 fadesound 1; _car say,"NeNaw";
sleep 7;
};

SirenOff.sqf

_car = _this select 0;

Med_Siren = false;
0 fadesound 1; _car say "BeBee";

_car removeaction SirenOff;
SirenOn = _car addaction ["Siren On", "SirenOn.sqf"];

Share this post


Link to post
Share on other sites

I may have a script for you. Ill upload it + a demo mission when i am at my own computer

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  

×