haagold.blogg.se

Fantasy grounds 2 scripting
Fantasy grounds 2 scripting








fantasy grounds 2 scripting

Whereas it's possible to call the onInit and onValueChanged functions externally, it's not recommended as these are called at specific times in the control's life via a system generated event. The issue could be if you can't reliably traverse the GUI hierarchy from where your code is running. It sounds like you're wanting to call a function that is attached to a control. You add that in the, this will work - these are known as Global Script - there are three ways to call LUA functions - in controls, window instances (window classes) or via Global Script Packages - these are described here:

fantasy grounds 2 scripting

Then you can use GameSystem.calcMentalLimits.










Fantasy grounds 2 scripting