How to bound a agent to a value of blackboard?

NodeCanvas Forums Support How to bound a agent to a value of blackboard?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9991

    I use a access node to check a BBGameObject selected. When it be selected, set the BBGameObject to another gameobject. But the access‘s agent is old value of the BBGameObject yet. So how to bound a agent to a value of blackboard?

    #9995

    When it pass the Access, ‘role_selfLeft’ will be set by another gameobject, but the access’s agent is the old ‘role_selfLeft’…Any idea?

    #9994
    Gavalakis
    Keymaster

    Hello,

    Nice find. As it seems there is a bug related to the System Event condition tasks. Not the Accessor.

    Please open up Task.cs and in method ‘Initialize’ at line #286 add UnsubscribeFromEvents(); before anything else in the method.

    Let me know
    Thanks 🙂

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

    #9993

    OHHH,is working after add UnsubscribeFromEvents method. I have no idea in code details of NC. So can I keep UnsubscribeFromEvents be there at #286? Or is there some cleaner fixing way?

    #9992
    Gavalakis
    Keymaster

    Hello,

    Sure, you can keep it there. I will also add for the next update.
    This is actually quite clean. It simply un-subscribe the task from the previous owner event before subscribing it to the new 🙂

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

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