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 .
×
May your rolls be chill this holiday season!
Create a free account

Is it possible to use Spin token but only in a 180 degree arc?

Hi, i'm trying to create the effect of watchmen scanning the darkness like a searchlight, and found theaarons great spin tokens api, but I wondered if theres any way to configure the angle rather than have tokens constantly spin 360? Thanks in advance. 
1598548116
The Aaron
Roll20 Production Team
API Scripter
That complicates things a bit.  It can definitely be done, the code would just need to be added to do it.
Thats what I figured, and sadly I know its well out of my ability. If you ever get the time i'd be hugely grateful.
1598552456
The Aaron
Roll20 Production Team
API Scripter
I might be able to do it tonight while gaming, I'll try to remember to take a look.
Thst would be amazing man. You pretty much make roll20 worth paying for.
1599052618
The Aaron
Roll20 Production Team
API Scripter
Just wanted to let you know I'm working on this change, just got interrupted and haven't gotten back to it yet.  =D
Cheers man. Its such a great community on here. I love how you guys help us to implement our plans and bring our dreams to the (virtual) table x
1599507926
The Aaron
Roll20 Production Team
API Scripter
Ok, just pushed the update:&nbsp; <a href="https://github.com/shdwjk/Roll20API/blob/master/SpinTokens/SpinTokens.js" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/SpinTokens/SpinTokens.js</a> You can add a second parameter that is the restricted sweep angle: !spin-start 10 120 This will cause it to sweep in a 120 degree arc centered on its current facing.&nbsp; It will take 10 seconds to sweep 60 degrees left and back, then 60 degrees right and back. Should be updated in the 1-click tomorrow or the next day, or possibly next week.
You are a king amongst men, thanks again. Luckily my players disappeared down a random side quest so i'll still be able to deploy this next session. I can think of lots of other uses too.&nbsp;