Hello everyone.
Is there a way to automatically execute a server script whenever a UI is opened?
Hello everyone.
Is there a way to automatically execute a server script whenever a UI is opened?
probly like so, in <UIScene>
scriptloadable="true" OnAdd='UIObject_Misc_ExecuteServerScript("gui_script_file")'
(maybe OnCreate is better than OnAdd, idk)
- note that gui's recompile the .Nss on-the-fly
- and, also not sure, but it's a good idea to preface the .Nss filename w/ "gui_"
probly like so, in <UIScene>
scriptloadable="true" OnAdd='UIObject_Misc_ExecuteServerScript("gui_script_file")'(maybe OnCreate is better than OnAdd, idk)
- note that gui's recompile the .Nss on-the-fly
- and, also not sure, but it's a good idea to preface the .Nss filename w/ "gui_"
OnAdd worked, thanks.