Simulate a "Bad Connection"

I want to simulate the lag one experiences when trying to use something over a terrible or slow connection. Similar to what it’s like to control the Mars rover, I want controlled units to have a delay in responding to the player’s commands the further they are from something like a radio tower or the player’s base.

It won’t be enough to add a delay to each input since I should be able to give a number of inputs and expect them all to happen together after an initial delay. I just have no idea on how to force that kind of lag.

Kinda hard to find a solution, so any help is greatly appreciated!

Limit the connection speed.

Get NetLimiter or something like that and cap your network speed to something like 5kb/s.