Difference between revisions of "Talk:Mod:Utility Functions"
From Roll20 Wiki
(added missing signature) |
Andreas J. (Talk | contribs) m (1223200 moved page Talk:API:Utility Functions to Talk:Mod:Utility Functions) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Shouldn't there be some place in here the "setInterval" function that is used by Patrolling example in Advanced examples? --[[User:83909]] ([[User talk:83909|talk]]) 20:51, 13 January 2015 | Shouldn't there be some place in here the "setInterval" function that is used by Patrolling example in Advanced examples? --[[User:83909]] ([[User talk:83909|talk]]) 20:51, 13 January 2015 | ||
+ | :<code>setInterval</code> is not a utility function implemented by Roll20, but rather is a native JavaScript function. See the [https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers.setInterval MDN documentation on setInterval]. Note that the examples on that page use <code>window.setInterval</code>, but the <code>window</code> object is implied in JavaScript and may be omitted, as well as being unavailable in API scripts. So, an API script using <code>setInterval</code> should not use <code>window</code>. {{User:235259/Signature}} 11:42, 14 January 2015 (EST) | ||
+ | |||
+ | == sendPing is borked == | ||
+ | |||
+ | The moveAll parameter appears to be broken. | ||
+ | Apparently this bug "... assured that it is in the pipeline to be solved the next time the API is getting an update. " | ||
+ | However this was 2 years ago: https://app.roll20.net/forum/post/987974/bug-sendping-only-pinging-and-moving-view-of-gm/?pageforid=987974 |
Latest revision as of 06:38, 9 June 2024
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 usewindow.setInterval
, but thewindow
object is implied in JavaScript and may be omitted, as well as being unavailable in API scripts. So, an API script usingsetInterval
should not usewindow
. 11:42, 14 January 2015 (EST)
[edit] sendPing is borked
The moveAll parameter appears to be broken. Apparently this bug "... assured that it is in the pipeline to be solved the next time the API is getting an update. " However this was 2 years ago: https://app.roll20.net/forum/post/987974/bug-sendping-only-pinging-and-moving-view-of-gm/?pageforid=987974