Play only when parameter is going on direction?

Hi, you could use my “ghost parameter” trick: Locomotive Engine Sounds -- A bit of an enigma - #3 by Alcibiade
However, that would be cleaner to implement that logic inside the game code.