Override Actor in DTree task

Forums 💬 NodeCanvas ⚙️ Support Override Actor in DTree task

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17709
    athellboy
    Participant

      Hey,

      Is it possible to use drop down variables of main agent in override agent instead of drag and drop object ? If it isn’t I’ll make a little change in codes.

      And how can I use inConnections variable in my task ?

      #17710
      Gavalakis
      Keymaster

        Hello and welcome 🙂

        This is a follow up from your post on the Unity forums…

        Actually I want to use “DialogueActor” variables that was defined before. so for now there is no way to use those variables ?

        For inConnections, I’ve created a custom task like MultiChoiceNode, there are multi input field in dialogue tree flow, I need to know the previous node is StamentNode or not and if it is, show last statement, I think I can use GetParentNodes and do these stuffs.

        Unfortunately using the DialogueActor variables defined on the DialogueTreeController insepctor directly within an ‘ActionTask’ is not possible right now, but it is something I am looking at supporting. DialogueActor variables defined in the inspector of the DialogueTreeController component, are only possible to be used in the DialogueTree Nodes derived from the ‘DTNode’ class.

        If you have created a custom Dialogue Tree Node (deriving from DTNode) with multiple inputs and want to access the parent nodes, then indeed, using the ‘Node.GetParentNodes’ method is probably the easiest way to do so 🙂

        Please let me know if that works for you.
        Thank you.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.