Any possibility to get the length of a sound?

Place to get help with not working mods / modding interface.
Post Reply
boernsen2
Inserter
Inserter
Posts: 21
Joined: Thu Dec 02, 2021 5:36 pm
Contact:

Any possibility to get the length of a sound?

Post by boernsen2 »

Hi everyone,

I am wondering if it is at all possible to get the length of a sound like this (in ticks or seconds)?

Code: Select all

data:extend({
  {
    type = "sound",
    name = "mysound",
    filename = "__MyMod__/sounds/mysound.ogg",
    category = "alert",
    volume = 1.0
  }
}
Cheers

boernsen2
Inserter
Inserter
Posts: 21
Joined: Thu Dec 02, 2021 5:36 pm
Contact:

Re: Any possibility to get the length of a sound?

Post by boernsen2 »

The goal is to chain sounds of varying lengths without overlapping or huge gaps.

Post Reply

Return to “Modding help”