Description
Cleans up (despawns) nearby carriable objects around the BaseObject within a specified radius.
Uses the AOI system to gather nearby GameObjects, filters to eligible CarriableObjects,
and destroys those matching the requested cleanup type (S1).
Properly detaches grouped objects from their parent before destruction.
Objects currently in interactions or held by a character are excluded.
Parameters
| Parameter | Description |
|---|
| BaseObject | The actor used as the cleanup origin (location and floor level) |
| S1 | Cleanup target type (EB1CleanUpObjectType). Defaults to All if omitted or invalid |
| F1 | Cleanup radius in cm. Must be > 0 |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|
| Remove all eligible clutter within 500cm radius | Self | CleanUpNearby | All | 500 |
| Remove only Trash type objects within 800cm radius | Self | CleanUpNearby | Trash | 800 |