Let the light-target token trigger its underlying tile when its state changes.
TileDocument.trigger(); will technically work. But you can call it with the following options { tokens: tokens, method: "Your Method Name", pt: {x: 0, y: 0}}
tokens should be an array of TokenDocuments, and pt is the point that the Tile was activated and is optional. method is only recoded in the history, but should be some way to identify that it was your module that triggered the Tile.
Let the light-target token trigger its underlying tile when its state changes.
TileDocument.trigger(); will technically work. But you can call it with the following options { tokens: tokens, method: "Your Method Name", pt: {x: 0, y: 0}}
tokens should be an array of TokenDocuments, and pt is the point that the Tile was activated and is optional. method is only recoded in the history, but should be some way to identify that it was your module that triggered the Tile.