Space Engineers

Space Engineers

评价数不足
Play Sound Sequence
2
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
378.739 KB
2022 年 8 月 15 日 下午 12:51
2022 年 8 月 16 日 上午 8:30
2 项改动说明 ( 查看 )

订阅以下载
Play Sound Sequence

描述
This script plays multiple sounds in a sequence using a single sound block. No need to use timer blocks. One programmable block and one sound block is enough to play a sequence of sounds.

This is very useful for mods providing many voice lines which need to be combined to make sense. Just create a sequence of these voice lines and play them by a single command.

For example using voice lines from AQD Computer Voice Lines mod you can have combined voice line like "Enemy sighted, turrets engaging, target acquired..."

Of course, you can still use this script to play a single sound, just pass one sound only in an argument instead of a sound sequence.

Requirements
  1. Programmable Block
  2. Sound Block

Usage
  1. Configure the soundBlockName variable with the name of your Sound Block.
  2. Define the duration of one sound sample in soundSampleDurationTicks variable - in ticks. If you are using samples of multiple lengths ticks should correspond to the longest sound sample in your sequence, otherwise sounds may get interrupted by a next sound in a sequence.
  3. Compile the script.
  4. Run the script with the argument containing list of sounds in a sequence separated by comma, e.g.: AQD_SB_Arc_005, AQD_SB_Arc_009

Advanced Usage
In order to configure timing of individual sound samples, use ":" sign behind each sound sample followed by the sample duration in ticks. If no specific sample duration is set for that that individual sample, default soundSampleDurationTicks will be set.

This enables you to create more precise timing when combining multiple voice samples.

For example passing "SoundBlockAlert1:50, AQD_SB_Arc_097:80, AQD_SB_Arc_096, AQD_SB_Arc_095" will result in:
Sound SoundBlockAlert1 playing for 50 ticks
Sound AQD_SB_Arc_097 playing for 80 ticks
Sound AQD_SB_Arc_096 playing for value of soundSampleDurationTicks ticks
Sound AQD_SB_Arc_095 playing for value of soundSampleDurationTicks ticks, but since this is the last sound in a sequence it does not matter
热门讨论 查看全部(1)
4
2024 年 4 月 7 日 上午 8:55
Fork
Dr. Kevorkian
4 条留言
mJrA 2024 年 6 月 5 日 上午 10:00 
If you wanna use Sounds from other soundpacks you need the "SubtypeId" From those sounds.

you can find out what the soundblock uses by looking in the modfolder (you will need the Modid number to find the right folder) In that folder inside the Data Folder for a *.sbc, open it with a text editor and look for the SubtypeId. Then you can call those Sound files
Raynor 2024 年 5 月 10 日 上午 9:54 
Thank you!
Siam 2024 年 2 月 14 日 下午 3:09 
I am trying to use that script but almost all sound don't work.
Is there any specific rule regarding the naming to target sound.
Magna_Greymane 2022 年 12 月 30 日 下午 3:51 
not overly familliar with how scripts work I am setting up a server do i need to install this like a mod to the srver or should my players just be able to use this?