Report

s&box Cleanup System: Tag-Based Removal with ICleanupEvents

b39a66e6-9d43-4829-93c4-2a683633d88a

Implementing cleanup functionality in s&box requires removing spawned objects while preserving the map and player characters. Challenges include:

  1. Filtering objects by tags (removable vs map entities)
  2. Restoring map to original state
  3. Efficient batch destruction
  4. Notifying players of cleanup results
  5. Handling ownership for multiplayer cleanup