foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
202 stars 10 forks source link

Added `TOKEN_MOVE_IN` and `TOKEN_MOVE_OUT` Region events #10923

Closed dev7355608 closed 1 month ago

dev7355608 commented 1 month ago

These events are triggered when the Token enters/exits the Region by movement and have the same event data as TOKEN_MOVE. TOKEN_ENTER and TOKEN_EXIT events are triggered as before, but the moved property of its event data has been removed.

forced: boolean has been added to the event data of TOKEN_MOVE_IN, TOKEN_MOVE_IN, and TOKEN_MOVE. It is true, if the Token document was updated with the option forced set to true.