A few questions

NodeCanvas Forums General Discussion A few questions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9419

    Hello! We just bought this for use in our upcoming projects, as the pricepoint and features were very nice. I have a few questions, though. I’ve been playing around with it for a while now and love it so far, but would like to know about this scenario…

    I set up a tree and attached it to a mob prefab:
    Setup

    Which has a debug.log statement executed when the agent gets within x units of the player. It works, but only for one instance of the prefab in which this tree’s agent is assigned. It also seems kind of unpredictable, if I remove any one of those instance clones the tree just doesn’t work at all. Also, it seems that if the mobs are spawned at a location in which the condition is true, nothing happens and the tree is locked out. Perhaps it is just me, or something I configured wrong though. Any thoughts? (Note that the first mob spawned has the entire tree lit up green with checks, while the second and any other mobs after the first fails the first check regardless of the distance, every time)

    Attachments:
    You must be logged in to view attached files.
    #9425
    Gavalakis
    Keymaster

    Hello James!
    Thanks for getting NC 🙂

    Can you please clarify how you set this up?

    You have a BasicMonster gameobject with a BehaviourTreeOwner component which is a prefab.
    This BehaviourTreeOwner has a BT tree assigned (which I suppose is also a prefab).
    You instantiate the BasicMonster game object.

    Is this how it is?

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

    #9424
    Gavalakis
    Keymaster

    It would also be great if you can send me a small project file which reproduce this behaviour.
    Thanks!

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

    #9423
    Gavalakis
    Keymaster

    Set the sequencer Dynamic. And also log a unique ID for each enemy. Then you can check if it works.

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

    #9422

    Sorry for leaving this blank! For anyone with this issue:

    It was my mistake, I had not assigned the tree to my other prefabs correctly. I had a different tree with the same name on them!

    #9421
    Gavalakis
    Keymaster

    Hey, no problem. Thanks for letting us know and glad it’s sorted out 🙂

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

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