Skip to content

Implement timer for removing out of bounds units - #1

Merged
50275 merged 1 commit into
mainfrom
patch-1
Apr 9, 2026
Merged

Implement timer for removing out of bounds units#1
50275 merged 1 commit into
mainfrom
patch-1

Conversation

@50275

@50275 50275 commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Add a timer to remove out of bounds units every 2 seconds

Add a timer to remove out of bounds units every 2 seconds.
@50275

50275 commented Apr 9, 2026

Copy link
Copy Markdown
Owner Author

technically there is room for improvement

  • start/stop timer upon game state change (trigger)
  • use try-except just in case removing this unit crashes the game as sk originally warned. can't reproduce
  • Instead of deleting units, move or respawn them at their last known position. (Requires ObjectMap data structure and additional knowledge.)

@50275
50275 merged commit 4c0c1c3 into main Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant