Space Engineers

Space Engineers

33 ratings
Play multiple sounds using a single sound block
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
926.000 B
2 Jun, 2018 @ 12:27pm
2 Jun, 2018 @ 1:21pm
2 Change Notes ( view )

Subscribe to download
Play multiple sounds using a single sound block

Description
The sound block has a limitation where you can't specify which sound to play using a sensor or timer block. Because of that you need to create one sound block per sound and it's quite annoying.

This little script will help you to play any sound on a single sound block. This mod does not allow to loop sounds, it's only for single sound play.

You need a sound and a programmable block for this to work.

Setup

There is only one variable :
string soundBLockName = "";

You can write the name of your sound block, if left empty it will take the first one it finds.


Usage

First thing first, you need to find the sound name you want to play. To do this run the program with the argument "sound_list" (without quotes, see screenshots) and you will find the list of sounds in the right part of the screen but also in the Custom Data widow (press Custom Data when on the programmable block and you will be able to copy paste the sound name you want to play)

For the main usage, playing a sound, just pass the sound name as argument the program. (the technical name of the sound found in Custom Data)
You can use a button, timer or sensor block to trigger a sound.


Default sound names and recommanded mod

Here is the name list of default sounds :
SoundBlockLightsOn
SoundBlockLightsOff
SoundBlockEnemyDetected
SoundBlockObjectiveComplete
SoundBlockAlert1
SoundBlockAlert2
SoundBlockAlert3
MusHeavyFight_08
MusSpace_08
DroneLoopSmall
DroneLoopMedium
DroneLoopLarge
DroneLoopHuge

I am using a female voice sound pack which add interesting sounds : https://steamproxy.net/sharedfiles/filedetails/?id=357056042

Here is the list of these sounds to use with my script :
1_Minute_Remaining_Frostik_1
30_Seconds_Remaining_Frostik_1
5_Minutes_Remaining_Frostik_1
Access_Denied_Frostik_1
Access_Granted_Frostik_1
Armoury_Frostik_1
Attack_postion_Frostik_1
Bridge_Frostik_1
Closing_Frostik_1
Completed_Frostik_1
Countdown_Frostik_10
Countdown_Frostik_3
Countdown_Frostik_5
Crew_Quarters_Frostik_1
Dangerous_Frostik_1
Deployed_Frostik_1
Docking_sequence_initiated_Frostik_1
Door_Closing_Frostik_1
Door_Opening_Frostik_1
Enemy_Ship_Detected_Frostik_1
Energy_low_Frostik_1
Equalizing_Pressure_Frostik_1
Friendly_Ship_Detected_Frostik_1
Gate_Closing_Frostik_1
Gate_Opening_Frostik_1
Goodbye_Captain_Frostik_1
Goodbye_Engineer_Frostik_1
Hangardeck_Frostik_1
Hello_Captain_Frostik_1
Hello_Engineer_Frostik_1
Infirmary_Frostik_1
Initiating_self_Destruction_Frostik_1
Laboratory_Frostik_1
Loading_Frostik_1
Medical_Bay_Frostik_1
Negative_Frostik_1
Opening_Frostik_1
Oxygen_Critical_Frostik_1
Oxygen_Low_Frostik_1
Positive_Frostik_1
Pressure_Loss_Frostik_1
Pressure_Stabilized_Frostik_1
Reactor_Room_Frostik_1
Retracted_Frostik_1
Science_Frostik_1
Self_Destruct_Sequence_Initiated_Frostik_1
Sequence_Alpha_Frostik_1
Sequence_Beta_Frostik_1
Sequence_Charlie_Frostik_1
Sequence_Delta_Frostik_1
Sequence_Echo_Frostik_1
Shield_Activated_Frostik_1
Shut_Down_Frostik_1
Signal_Lost_Frostik_1
Sorry_Dave_Frostik_1
Starting_Process_Frostik_1
To_infinity_Frostik_1
Unloading_Frostik_1
Warning_Frostik_1
Warning_Incoming_Asteroids_Frostik_1
Weapon_System_Activated_Frostik_1
Weapon_System_Deactivated_Frostik_1
Weapon_use_Frostik_1
Welcome_aboard_Frostik_1
Welcome_Frostik_1
Your_orders_Frostik_1
16 Comments
Mr. Shadow 20 Sep, 2022 @ 8:52pm 
Sooo I understand you don't play SE anymore but would you happen to know how to get the script to work with a group of sound blocks? I tried putting in the name of the group as the sound block name and it didn't work so is there a different way to do it?
jglenn1562 11 Mar, 2022 @ 1:10pm 
Is there a possibility to modify this script so that you can get button inputs to behave like the large grid jukebox (Play/Stop, next track, previous track buttons)? Taking a step further, could there be an LCD to display current sound playing? This is the closest script I can find that could bring my small grid jukebox to life.
Neyna  [author] 9 Jul, 2020 @ 2:32pm 
Thanks Lomion, I am happy that it still works and that you found it usefull :)
Lomion 7 Jul, 2020 @ 8:48pm 
Dunno why everyone post that this doesn't work. Works fine for me. Great script. Saves a lot of space, pcu and visual appeal. :steamhappy:
Neyna  [author] 3 Apr, 2020 @ 10:53am 
Sorry i am not playing SE any more. And thanks for your kind message.
Wilziak Kid[LoL] 2 Apr, 2020 @ 8:01pm 
any chance you could update this mod? i had it working for a while, then it stopped. it was a great mod
Neyna  [author] 5 Apr, 2019 @ 12:37pm 
Yes i am looking forward to play Dual Universe but i dont think it will be before a few years :) The game looks very promising.
I already work in software development but making games could be very interesting indeed but there are few companies :(
matthewvogt 5 Apr, 2019 @ 9:28am 
I can understand that thank you. Have you check out Dual Universe? lol they could use your scripting skills.
Neyna  [author] 4 Apr, 2019 @ 1:13pm 
Thanks for your kind message. I will look for the problem the next time I play (it may take some time since I dont have a lot of interest in SE right now). But an update seems to have broken the script :(
matthewvogt 4 Apr, 2019 @ 9:26am 
Thank you again for this mod for when it was working =) I had fun fiddling with it in game.