Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

A question that someone is bound to know the answer to.

I'm working on a small map for a much larger adventure and I'd like to be able to block the players from passing through a doorway while allowing vision, kind of like blocking a door with a wall of force. Is there a way to do this? Thanks in advance.
Nope. Correction: There is one way to do it. Correction: There are two ways to do it. Set up dynamic lighting. Create a non-player-character, I call mine "Player Droppable Torch" and it looks like a torch. Give it vision and light-emission. Make it so all players can see it, and see through its 'eyes'. Put it on the other side of the door, window, or wall of force. Players will be able to see what it sees, but will be unable to pass through the door.
1538536418

Edited 1538536475
I'll give it a go. Thanks!
1538540382
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
There actually is a very old API script that can be used for this from back before DL had movement blocking. <a href="https://wiki.roll20.net/Script:Collision_Detection" rel="nofollow">https://wiki.roll20.net/Script:Collision_Detection</a>
Does that Collision detection script still work today?&nbsp; I get how to add the light but how to you block the players?
I'm not sure about the collision script. In my example, you would use Dynamic Lighting to make the door. The torch allows you to see on the other side of the door, as if through a window, but you will not be able to move your token into the room due to the DL layer boundary.
1538614926
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
There's no reason the collision script shouldn't work that I know of. The API sandbox still functions the same as it did back then, just with some new features.