It would be great to have a built-in caching system or event trigger that detects when a player enters or exits a grid cell. Currently, to track a player's grid position, we need to manually compare the current cell with the previous one in a loop. Having a native onGridCellChange event (or similar) would make it much easier and more efficient to build systems based on spatial logic.
Example:
lib.onCache('onGridCellChange', function(newZone, oldZone)
-- E.g.
end)
This would be very helpful for triggering area-specific logic.
It would be great to have a built-in caching system or event trigger that detects when a player enters or exits a grid cell. Currently, to track a player's grid position, we need to manually compare the current cell with the previous one in a loop. Having a native onGridCellChange event (or similar) would make it much easier and more efficient to build systems based on spatial logic.
Example:
This would be very helpful for triggering area-specific logic.