Reply To: Subtree Node loses its reference after use.

Forums 💬 NodeCanvas 🗨️ General Discussion Subtree Node loses its reference after use. Reply To: Subtree Node loses its reference after use.

#13925
arachnidjacob
Participant

    Hi Gavalakis, i appreciate the time and effort you are putting into keeping the forums going and answering questions, so dont worry!

    Ill try to explain my process as best i can and you can tell me if i am doing something wrong with my approach, or if i should abandon the design entirely and try to re-think the way i’m doing things.

    Reactions and actions, i switch out the Mission Subnode tree depending on reactions which causes the tree to lose its reference even if its in the BB.
    [attachment file=”12285″]

    I add the reactions at start from the chosen AI profile
    [attachment file=”12286″]

    This is the designer interface, when creating a new AI profile (Captain), you match missions to two sets of flag enums for who is doing the action, and what action it is.
    [attachment file=”12287″]

    I tried stopping the tree before switching, Which stopped the references from dissapearing like you said, but it causes a 1 frame infinite loop error on the AI trunk start node that i’ve not been able to circumvent.
    [attachment file=”12288″]