Currently (1.02) you can only specify a value for a sound controller variable (such as rpm, speed used for the cars) using the SoundObjectBuilder instance before playing the sound. Once the sound is playing you can not adjust the variables anymore.
Though the car class has a OnSound event for this, this concept should apply to other types of objects or also sounds that are entirely just played from script with no connection to any object.
Suggestion: Add the SetVariable interface featured in SoundObjectBuilder to the AbstractWave class
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Event Timeline
Comment Actions
Alternatively, add a function "SetFrequency" to the AbstractWave class. Since volume can already be controlled via script this would then give total control over both. The formulas for calculating both volume and frequency can be done in enscript then.
Comment Actions
added the SetFrequency command to the AbstractWave class for experimental servers 1.08, they probably forgot to write about it in the news.
Comment Actions
Yeah, I forgot I made a ticket about it :)
GetFrequency should arrive with a future update as well. Maybe not 1.08 but then it would be 1.09
Note on SetFrequency is clamped to values between 0.5 and 2.0.
@Geez please close.