I'm getting weird results with script locals though and was wondering if anyone had come across the same issue?
I thought I might try a work around and bake the variable I want into a property on the UI button
Hence I placed this code into the behaviour script :
Code: Select all
put the long name of me into button_name set the registered_linenumber of button button_name to linenumber
It'd be better to have this data stored in a script local but the behaviour seems to forget the script local and I can't work out why. I could just give up and use some globals I guess. But anyone got some tips or can point me in the write direction for learning more how script locals function in behaviour scripts?