How to bound a agent to a value of blackboard?

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19463
    lijingsama
    Participant

      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?

      #19467
      lijingsama
      Participant

        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?

        #19466
        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 🙂

          #19465
          lijingsama
          Participant

            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?

            #19464
            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 🙂

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