Jump to content
ChlckenWlng

How to make a ambulance turn on the sirens and lights on a trigger?

Recommended Posts

I just don't find anything that can do that. All I want is that when a ambulance drives into the trigger that it turns on the sirens and lights.

Share this post


Link to post
Share on other sites

Open the config viewer, find the ambulance in cfgvehicles, open the ambulance entry up and look for the actions on it.  In there there's gonna be an action to turn on the lights and one to turn on the siren.  Copy whatever is in the onactivation field (or whatever it's called there, I can't remember) there and put it in the trigger. 

Share this post


Link to post
Share on other sites

Like stanhope said.

For the Idap Ambulance from the Laws of War DLC put this in the on activation field of your trigger:

 

nameofyorambulance animateSource ["lights_em_hide",1]; [nameofyorambulance,"CustomSoundController1",1,0.2] remoteExec ["BIS_fnc_setCustomSoundController"];

 

change "nameofyourambulance" to whatever you have named the ambulance

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
2 minutes ago, tobias brandt said:

Like stanhope said.

For the Idap Ambulance from the Laws of War DLC put this in the on activation field of your trigger:

 

nameofyorambulance animateSource ["lights_em_hide",1]; [nameofyorambulance,"CustomSoundController1",1,0.2] remoteExec ["BIS_fnc_setCustomSoundController"]; 

I love you thank you very much

Share this post


Link to post
Share on other sites
On 12/2/2019 at 6:27 AM, tobias brandt said:

Like stanhope said.

For the Idap Ambulance from the Laws of War DLC put this in the on activation field of your trigger:

 

nameofyorambulance animateSource ["lights_em_hide",1]; [nameofyorambulance,"CustomSoundController1",1,0.2] remoteExec ["BIS_fnc_setCustomSoundController"];

 

change "nameofyourambulance" to whatever you have named the ambulance

 

 

How would you turn it off with a trigger?

Share this post


Link to post
Share on other sites

@stburr91:

On 12/2/2019 at 12:21 PM, stanhope said:

Open the config viewer, find the ambulance in cfgvehicles, open the ambulance entry up and look for the actions on it.  In there there's gonna be an action to turn on off the lights and one to turn on off the siren.  Copy whatever is in the onactivation field (or whatever it's called there, I can't remember) there and put it in the trigger. 

 

Share this post


Link to post
Share on other sites
On 12/3/2019 at 5:25 PM, stburr91 said:

 

 

How would you turn it off with a trigger?

Just change 1 to 0

["lights_em_hide",0];
Should do the work

  • Like 1

Share this post


Link to post
Share on other sites
On 12/2/2019 at 6:27 AM, tobias brandt said:

Like stanhope said.

For the Idap Ambulance from the Laws of War DLC put this in the on activation field of your trigger:

 

nameofyorambulance animateSource ["lights_em_hide",1]; [nameofyorambulance,"CustomSoundController1",1,0.2] remoteExec ["BIS_fnc_setCustomSoundController"];

 

change "nameofyourambulance" to whatever you have named the ambulance

I am super late to the party here, and this is likely a super stupid question, but where in the Eden Editor do I see the name of my ambulance that I need to enter? 

Share this post


Link to post
Share on other sites
27 minutes ago, Max_Brain said:

I am super late to the party here, and this is likely a super stupid question, but where in the Eden Editor do I see the name of my ambulance that I need to enter? 


Place it (the vehicle) on the editor, then double-click it, and inside the second row ("Object: Init") there's a box "variable name". That's the unique name you will give to it. 😎

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

×