Collision listener firing multiple times due to server delay
π Luaβ’Updated 2 days agoβ’0 views
Add a guard flag inside the callback so repeat collisions in the same frame/lag window are ignored - curtime only updates once per frame, so you can also debounβ¦
How to prevent a collision callback from running more than once when the server reacts slowly
Add a guard flag inside the callback so repeat collisions in the same frame/lag window are ignored - curtime only updates once per frame, so you can also debounce by comparing curtime to the last-handled time.