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

Locking Player View to Their Token

I am using the dynamic lighting feature and I though it would be both cool and easier for the players with navigating if the player view was locked to their token. So that way when they move it across the map, their view of the map changes so that the token remains in the center. I'm still new to JavaScript but I did look through the API wiki page but I didn't see anything that looks like it would do what I need it to. Is this something that can be done with the API or no?
1404347701
The Aaron
Roll20 Production Team
API Scripter
It is not. The only control of the player's viewpoint you have through the API is the sendPing() function, which can draw everyone's view to a specific point. Unfortunately, you can't pull only a certain player's view. I'd be totally onboard for that option though. One of my players is legally blind, so pulling him to his token would be extremely useful, particularly if he could activate it through a command I wrote for him.
Well darn. Too any Devs reading this: This would be for a cool feature!
1404585816

Edited 1404585842
I, too, have a blind player. We all work with him but I'm sure he would enjoy being able to do more himself. I can set up macros and api's for him but, without being able to select his token, their utility is somewhat limited or I'd have to make universal commands that would be false for everyone else . . .
1404591354
The Aaron
Roll20 Production Team
API Scripter
Glospey, PM me, I'm working on a script with some accessibility features and commands. It would be great to get your perspective.
My players want a feature to center themselves on their token as well, instead of making me ping every time.
+1