- Home /
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!
Did You try to add a sequence number to each command (input) for a particular unit (receiver) so i.e. if command (input) with SEQ:5 arrives first, the unit (receiver) waits until SEQ:4, SEQ:3, SEQ:2, SEQ:n==LastReceivedSeqNum+1 ... and then runs them all in a sequence?
Answer by N00MKRAD · Jul 19, 2019 at 08:40 AM
Limit the connection speed.
Get NetLimiter or something like that and cap your network speed to something like 5kb/s.
I realize I wasn't clear enough, sorry. I meant locally, not over a connection. Editing the question...
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to make shortcuts using two keys 1 Answer
Game Menus WIth Keyboard Input Control 1 Answer
Force input on Button? 1 Answer