Faced with this problem.
I am trying to implement a tank shot.
I have 3 types of shot samples (close range, medium and long range).
I have an event which contains these 3 samples.
I need the samples to be played depending on the distance (for example on distance of 1km the sample “far distance” will be played.
The thing is that I make RTS game and the camera is mostly high above the terrain.
How do I do it?
And is there such a possibility using one event?