Is it possible to slow time within a specific radius of the player.
For example if the player presses the slow time button on the keyboard then everything within a 10m radius is affected and everything outside the area remains unaffected.
If this is possible, any help on how to achieve this?
I saw a special parameter for game speed not so long ago. But I’m not sure you can use it for particular actors.
Anyway you have two options:
Easy one and I think bad one. Skip frames in every tick for affected actors or use custom every tick event (which can be called with different frequency). This leads us to laggy behavior in some cases.
Hard one. Make a special multiplier for every actor movement actions. Instead of adding 50 to location, add 50*0.5 and so on.
Ok. I guess, basically you want to slow pawns and any actors. You can down max speed for pawns, and this is simple (but they can change animation in that case).
But what if some actor is moving at the affected area? It depends on the way how you move them. Seo you can set lower interp speed or decrease a delta location, or whatever you make in your code.