Runtime instantiation Tips

NodeCanvas Forums General Discussion Runtime instantiation Tips

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11461
    chocolacode
    Participant

    Hey Gavalakis,

    could you help to show the Runtime instantiation Tips(https://nodecanvas.paradoxnotion.com/documentation/?section=runtime-instantiation-tips) using Action tasks? Option 1, 2, etc…

    I have found only a Control Graph Owner, but could not find a Switch behavior or Switch FSM Actions, etc

    Thanks in advance!

    #11465
    Gavalakis
    Keymaster

    Hey,

    Can you please clarify what you mean? Sorry that I don’t understand :/
    Do you mean doing SwitchBehaviour using Tasks?

    Thanks

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

    #11469
    chocolacode
    Participant

    Hey,

    I am referring to part of the Nodecanvas documentation called “Runtime Instantiation Tips”

    I found that segment when I was trying to start a behavior tree at runtime and switching FSM at runtime, however everything explained in there is if you do it by coding

    I would like to suggest to add the same documentation but using Action tasks

    here are the marked segments marked(*)that would be helpful to have explained in Graphical way by Action Tasks in FSM or BT

    “…
    (*)Option 1
    You have a game object prefab with a BehaviourTreeOwner. You also have a created BehaviourTree.
    At runtime you can instantiate the BehaviourTreeOwner game object prefab …

    (*)Option 2
    You only have a BehaviourTree created and no BehaviourTreeOwner at all. You can add the BehaviourTreeOwner component at runtime and similarily to above, Start a new graph for them…

    (*)Of course in most cases you will also want to assign a blackboard for the BehaviourTreeOwner to use.

    Going Further
    (*)Using the StartBehaviour(Graph) or SwitchBehaviour(Graph) you can go further and even switch BehaviourTrees at runtime.

    (*)While this is quite possible, it is best design wise, to have only ony BehaviourTree and switch behaviours within using Nested Behaviour Trees.
    All the above examples are also true for State Machines as well….”

    please let me know if this is possible

    Thanks in advance,

    #11481
    Gavalakis
    Keymaster

    Hey,

    Most of those things could be done with creating very simple custom tasks based on the code shown in this documentation section. For example, here are two action tasks to SwitchBehaviour of a GraphOwner (BehaviourTreeOwner or FSMOwner respectively).

    Let me know if that is indeed what you are after. If so and you need more tasks to perform different things stated in that section, let me know what that is, and I can provide them.
    Thanks

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

    #11482
    chocolacode
    Participant

    Hey Gavalakis,

    yes, I wanted to see some tasks to use in NC

    I will try these

    Thanks!!

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