-
May 12th, 2021, 23:34 #11
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,541
Here's a version I ended up testing with:
Code:function onInit() Token.onMove = onTokenMove; end function onTokenMove(tokenMap) local token1 = CombatManager.getTokenFromCT(DB.findNode('combattracker.list.id-00003')); local token2 = CombatManager.getTokenFromCT(DB.findNode('combattracker.list.id-00001')); Debug.chat("ON MOVE 1", token1) Debug.chat("ON MOVE 2", token2) Debug.chat("ON MOVE 3", Token.getDistanceBetween(token1, token2)) end
-
May 13th, 2021, 06:09 #12
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,541
I was able to slip this into the beta build (v4.1). When a token is moved by a remote client (either GM or player), the Token.onMove and tokeninstance.onMove events will fire (as in FGC).
If you base your stuff on something similar to my sample code in the post above along with this change; it should simplify your code.
Regards,
JPG
-
May 13th, 2021, 12:37 #13
Thanks JPG!
bmos' extensions
he/them
-
May 13th, 2021, 14:11 #14
-
May 13th, 2021, 15:05 #15
Now just need something to tell us if its visible in LOS
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks