Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Talk:Mod:Utility Functions

From Roll20 Wiki

Revision as of 16:42, 14 January 2015 by Brian (Talk | contribs)

Jump to: navigation, search

Shouldn't there be some place in here the "setInterval" function that is used by Patrolling example in Advanced examples? --Ronald L. (talk) 20:51, 13 January 2015

setInterval is not a utility function implemented by Roll20, but rather is a native JavaScript function. See the MDN documentation on setInterval. Note that the examples on that page use window.setInterval, but the window object is implied in JavaScript and may be omitted, as well as being unavailable in API scripts. So, an API script using setInterval should not use window. --Brian (talk) 11:42, 14 January 2015 (EST)