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

Using API to activate animated token on attack roll?

1665950711

Edited 1665950742
Title is pretty much self-explanatory.  Assuming I have an animated Token (using .WEBM format) of a character with a gun. Animation is a muzzle-flash from firing it. I can stop it from looping easily and then play with just "Play" button. But can I use API in some form to automatically Play the muzzle-flash animation when Player presses attack button on the Sheet?  Would very much be grateful for some assistance in that question! ^.^
1666034430
The Aaron
Roll20 Production Team
API Scripter
Mod scripts currently do not have a way to start and stop animations on .webm graphics.