Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Two Questions and Suggestions #1122

Open
Hotapn opened this issue Feb 18, 2025 · 2 comments
Open

Two Questions and Suggestions #1122

Hotapn opened this issue Feb 18, 2025 · 2 comments

Comments

@Hotapn
Copy link

Hotapn commented Feb 18, 2025

Question :

1.Excuse me, how can I make the train play a sound under specific conditions (for example, when it is 1,000 meters away from the next station)? I have tried using the [StateChangeSound] section in the train file and the TrackFollowerFunction in the route file, but neither of them works. I wonder if there are any other methods to solve this problem.

2.Is it possible to change the speed of a non-stationary object in the Track Following Object? My current solution is to set the StopTime to 0 seconds and Accelerate to TargetSpeed, but I wonder if there is a better way to do this?


Suggestions :

  1. The motor sound uses multiple sounds within a specific speed range.
  2. Adding the function of transition curves.

@leezer3
Copy link
Owner

leezer3 commented Feb 19, 2025

The first question would generally be solved using an .Announce command in the routefile.
What exactly are you trying to do?

With the second, I don't think so.

@Hotapn
Copy link
Author

Hotapn commented Feb 20, 2025

The first question would generally be solved using an .Announce command in the routefile. What exactly are you trying to do?

With the second, I don't think so.

Thanks for your reply.

For the first, the .Announce command can only be triggered once and cannot be set to trigger under specific conditions. I want to achieve this effect.

For the second, do you have a better solution in mind?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants