Closed coblyox closed 3 years ago
ComboZones by default stop at the first zone they find and don't register leaving unless you are in no zones. This is for optimization purposes. For use cases where this behavior is an obstacle, the 'exhaustive' helpers were added to ComboZones. These will go through all zones in the ComboZone no matter what and therefore always register entering/leaving, even when you have zones inside of each other. Please see this for more info on how to use them.
Haven't read wiki properly, thank you for explanation.
Hi!
I don't know if it's a bug, but probably it should work that way. For example, if you teleport to different zone in same combo, it doesn't trigger PlayerInOut so for example I cannot get that zone metadata until I reenter zone. Maybe I'm just using it wrong?
For example:
If you enter any zone and teleport to other zone without leaving it (eg.: using SetEntityCoords() method). it's not retriggered and metadata is not updated. Like I said, maybe I'm using it the wrong way? Because as far wiki reaches, onPlayerInOut on individual zones doesn't return metadata. But maybe it could?