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

Script:No Token Rotation

From Roll20 Wiki

Revision as of 12:26, 26 August 2013 by Brian (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The following script modifies the behavior of the rotation handle on graphics objects. When the rotation handle is released, the object is set to 0 rotation. In other words, rotation is prevented while this script is running.

Code

on('change:graphic:rotation', function(obj, prev) { obj.set('rotation', 0); });