Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
To have a door trigger a sound, I would use a Event Controller.
It has that event in its list of events.
Video on using them, if you need it https://www.youtube.com/watch?v=kUiV56aZrhM
I don't know what mod/script you are referring to, so, I can't help you there.
This is the script Im using.
https://steamcommunity.com/sharedfiles/filedetails/?id=1401180554
The mod allows you to play different sounds using one sound block using different activators (buttons, sensors or other means. Thus having only one sound block for many sounds instead of using a separate sound block for each sound.
If understand your problem, You want a sound and a action to occur when a sensor is triggered. Do you also, depending on the situation, want different sounds for the same event?
If it's a easy task such as, for example, have a hanger door open and have it announce door open while turning on a red light then that is fairly straight forward.
I need to go into my experimental world to check some things out and I'll be back with some results.
There is no way to stack commands onto a slot of a sensor. The only exception is if the commands are compatible.
A example would be a on/off command and then have the blocks grouped. You walk into a sensor field and all the lights turn on or off.
If they are what I call incompatible commands such as turning on a light and extending a piston. That's where you put them on a timer and trigger it.
You could possibly pass it on to a Event Controller if the action such as a light on or door open or whatever the activator you want to use is on the event list.
The Event Controller has nine slots per tool bar and nine or ten tool bars in total. (Ctrl+ Number of tool bar you want)
For example: The sensor detects you or your ship/rover and opens a door. The Event Controller detects the door is open and then turns on lights, plays the sound block and whatever else you want to happen.
If that is not a option then the only thing I can suggest is using Easy Automation V2.0
I use this and it gives me a lot of freedom to do just about anything I want.
I'll leave the script and guide if you're interested.
https://steamcommunity.com/sharedfiles/filedetails/?id=694296356&searchtext=Easy+Automation+V2.0
https://steamcommunity.com/sharedfiles/filedetails/?id=685206874
Maybe someone else will have a different approach and help you figure it out.
Oh and of course Event Controller doesnt have events for detectors. ♥♥♥♥♥♥♥♥♥♥♥, how stupid are the developers? Why do they make playing this buggy ♥♥♥♥ so painful?
Basically that script you are using could be the foundation of a juke box.
Put four songs into the sound block list and set up a button panel to play one of four songs.
Just like the juke box, Keen, put in the game awhile back. In fact you'll find them in the trade stations.
Maybe it would help if you lay it out step by step of the events you want to happen.
For example:
I just wanted to get into my little shuttle craft and leave without pushing buttons.
With a onboard Event Controller checking to see if I had planted my butt in the pilot seat, I made the process fully automatic. All that was needed was two Event Controllers (EC).
When the shuttle craft EC detected me in the seat, it switched off the stockpile for the oxygen and hydrogen tanks, set the batteries to auto, unlocked the connector and started the depressurization of the hangar.
The air vent has two command boxes, one for pressurization and the other for depressurization. So, when it detected the hangar was depressurized it opened the hangar door.
When I returned, I just put the two connectors together touching each other with the magnetic force holding them together and jumped out. The EC saw this and set the tanks to stockpile, batteries to recharge. locked the connector and closed the hangar doors.
The second EC was set to watch the hangar doors and when they were closed, it started the pressurization process.
What is the setup that you're going for?
Better to learn rotors and pistons first for a drilling platform. That makes like way easier.
Event controllers are good for airlocks. There are vids on YT on how to do them.
So I've been trying to make the interior lights turn on (that was easy) and play a event sound when I walk inside (not so easy for something so simple). I did it easily by adding two different sensors but I want one sensor to do the lights AND trigger the sound. So far its been impossible without adding yet more redundant gadgets.
With the multiple sounds script I can have the one speaker play multiple sounds, but I still need a event block for each sound. If I could have a event block that detects all events (Why the devs didnt put this in is insanity) not just the few that are included, then everthing would be perfect.
The event block can detect if something is turned on, but not if something is activated. And it can only handle one event. If it could control every event in the menu at the same time then that would be perfect. ATM you NEED a thousand monkeys on a thousand typewriters just to write Mary has a little Lamb.
Just put them in the custom Data of the sensor.
@LightandSoundOn{
OnOff_On Light
Sound of Sound Block = Lights on
PlaySound Sound Block
}
@LightandSoundOff{
OnOff_Off Light
Sound of Sound Block = Lights off
PlaySound Sound Block
}
In the set up actions of the sensor, drag down the programmable block with Easy Automation on it into the first slot. Select run and enter Sensor (LightandSoundOn)
In the second slot do the same with Sensor (LightandSoundOff)
This with the guide should help you get started.
Edit:
Ok I tried it. It doesnt work with the Multisound script. Since the sound library Block from that script is not being called on by the Automation script.