If I un-comment out the last line there, SetParameters() then the very next line throws an error “Exception ‘Null pointer access’’” (the two commented lines are just two version I am working with, one that has default values, and ones that I give it values, neither of which want to work anyway).
Am I missing something basic? It will compile with out the SetParameters function call, but then where will i set parameters? It doesnt seem to be listed in the limitations part of the aforementioned scripting page.
There are not many reasons to do it in seperate modules. Adding everything into the same module with #include and not using interfaces is the easiest. However if you are using angelscript hot reloading the entire module is reloaded on change. If everything is in its own module or some organized division of modules then only the affected modules are reloaded. It also is good to do if you plan on extending the api to modders since you don’t want people breaking your code.
I thought I had. I must have commented that out. And so it does work. Thank you again. It is good to know that other method incase I ever find myself in need.
I do have a follow up question…
The “node” attribute that the scriptObject class has access to.
In the examples I pointed out eariler, they use the node.Translate() or the node.Rotate() function. In my test those work as expected. On this page http://urho3d.github.io/documentation/a00238.html There is a method called GetParent() and GetScene().
I was trying to use those to possibly get access to the scene object that my component is under to potentially draw into the debugrenderer. However i get an error that says that node does not have either of those methods. Just curious what i am missing in this instance.
Thanks a lot for the help friesencr. I owe you a beer.
node is magic in my brain. it is only available when the caller is the scriptobject. if i remember this.node() doesn’t work. it has to be plain node() it’s like its a global method on the script that responds to the caller. I do something funny with my code to make the node available to external callers.
Yup, that was it.
Those online docs are not as easy to navigate as the c++ ones are, but i’ll spend more time in there. Havent seen the source ones. I’ll investigate those as well. Thanks for fielding my noob stumblings.