Vampurica / DZMS-DayZMissionSystem

A logic and useability rewrite of the DayZChernarus Mission System
17 stars 22 forks source link

optional/configurable timers for despawning loot / structures / vehicles / ai #23

Closed mudzereli closed 10 years ago

mudzereli commented 10 years ago

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

Vampurica commented 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.

Vampurica commented 10 years ago

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.

mudzereli commented 10 years ago

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

Vampurica commented 10 years ago

DZMSPurgeObject will be a great addition. Amazing work so far.