Closed mudzereli closed 10 years ago
Can possibly be done like DayZ does loot piles, a nearestObjects check for a variable that has the creation time set on it compared to the current time.
The coordinates from when a mission launches (or finishes) could be added to an array, and then a nearestObjects check of each location for objects within 50m with the variable set on them.
Crates and Vehicles should be ignored.
If no objects with the variable set are found within the 50m of the coords, the coords should be removed from the array.
good idea -- I'm testing this branch now -- i'll put in a pull request once i get it tested:
https://github.com/SMVampire/DZMS-DayZMissionSystem/compare/feat;mission-despawn-timers
DZMSPurgeObject will be a great addition. Amazing work so far.
should be able to do it using a single cleanup timer per mission to check every x seconds and fire off anything that's ready to be purged