Reply To: Invector tutorial/integration

NodeCanvas Forums Support Invector tutorial/integration Reply To: Invector tutorial/integration

#14057
Gavalakis
Keymaster

Hello,

To be honest, I have never used invector TPC, since I’ve used ootis Motion Controler personaly in the past (for which and integration does exist). An integration with invector’s TPC though, is certainly something I could look at creating if a few more requests about that take place.

With that said, what you want to achieve might already be possible without an integration.
If invector TPC component has some kind of function or property for the player to take damage for example, then what you want to achieve should already be possible by using the “Script Control” categorized NodeCanvas actions, which are able to get/set properties or execute functions on any component. Considering this is true for TPC (speaking out of my imagination since I do not have the asset), what you will need to do is something like this:

1) Open up “Tools/ParadoxNotion/NodeCanvas/Preferred Types Editor” window (from the top Unity menu bar).
2) In that window, click “Add New Type” and search for the name of the invector TPC component (like for example “Third Person Controller” or similar). This will make that component “visible” to NodeCanvas menus.
3) Add the “Script Control/Execute Function” action in some node as required.
4) In that “Execute Function” action inspector, hit the “Select Method” button. This will bring up a menu for you to select a method/function to call categorized by type. Within that menu, find the type “Third Person Controller” (or however the component is called) and in it’s submenus, you will be able to find all methods/functions possible to call from NodeCanvas. There might be a good chance for a function similar to “Take Damage” to exist in there, which is what you want 🙂

Once again, I do not own invector TPC and as such, the above steps might not be true, but they still illustrate how you would go about calling a function on any component from within NodeCanvas.

Let me know if that works for you.
Thank you.

Join us on Discord: https://discord.gg/97q2Rjh