OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

Sounds in an animated file do not support translation functions

Open leezer3 opened this issue 4 years ago • 0 comments

Description

A relatively recent feature was allowing sounds to be added to an animated container.

These are currently 100% static in-world, and so are unable to be moved via functions.

Reproduction

[sound]
Filename = SiemensPropulsion/motor0.wav
Volumefunction = if[Ceiling[Abs[value + 1 * (speed * 22.3693629)]] >= 1 & Floor[Abs[value + 1 * (speed * 22.3693629)]] <= 85,if[powerNotch > 0,0.9,0],0]
Pitch = 1.0
Position = 0,1.2,0
TrackFollowerFunction = value + ((1/60) * speed)

Should move along the TrackFollowerFunction path.

leezer3 avatar Jun 08 '20 21:06 leezer3