call the library's triggers from outside of the library?
I assume you mean Actions or functions here, since you can't really "call" a trigger. But yes, you can call the functions you create inside the library from outside that library unless you have made those functions hidden in the GUI. This is useful if you don't want functions to show up in the GUI function/action picker for convenience.
load the library's values to be used outside of the library?
Yup. You're essentially just importing a folder, so you can reference all the variables, actions, functions and anything else you might want/need. The library system just provides an easy way to import a "chunk" of code which all works together for one purpose.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Thanks zeldarules28! I created several tests around libraries using just one map for now (no mods for now), and everything worked fine for that. The original compile issue I had run into will take a while to test yet, as it involves nested mods, but I have renewed hope thanks to your helpful explanations.
Thanks again!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I am new to using mods and libraries. If I create a mod with a library, and then add the mod as a dependency for a map, can I...
Any guidance would be much appreciated. Thanks in advance!
I assume you mean Actions or functions here, since you can't really "call" a trigger. But yes, you can call the functions you create inside the library from outside that library unless you have made those functions hidden in the GUI. This is useful if you don't want functions to show up in the GUI function/action picker for convenience.
Yes, as long as those global variables are not constants (obviously).
Yup. You're essentially just importing a folder, so you can reference all the variables, actions, functions and anything else you might want/need. The library system just provides an easy way to import a "chunk" of code which all works together for one purpose.
@zeldarules28: Go
Thanks zeldarules28! I created several tests around libraries using just one map for now (no mods for now), and everything worked fine for that. The original compile issue I had run into will take a while to test yet, as it involves nested mods, but I have renewed hope thanks to your helpful explanations.
Thanks again!