Do walls block a line?
check-wall-collisionChecks whether walls block the straight line between two tokens or points for movement, sight, light, or sound, and lists the blocking walls. Open doors do not block.
Instructions
Test whether walls block the straight line between two tokens or points, for movement, sight, light or sound, and list the walls on it. Doors that are open do not block. Uses Foundry's own test when the canvas shows the scene, otherwise the stored walls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End: { tokenId } (id or name of a token), or { x, y } in pixels | |
| from | Yes | Start: { tokenId } (id or name of a token), or { x, y } in pixels | |
| type | No | What is blocked; default move | |
| sceneIdentifier | No | Scene id or name; default the scene that is active for everyone |