Action never return success

Forums 💬 NodeCanvas ⚙️ Support Action never return success

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19653
    dsedov
    Participant

      What am I doing wrong? This should return success if the list is empty, but it does not.

      See screenshot of the tree

      #19656
      Gavalakis
      Keymaster

        Hello and welcome 🙂

        At the time of the screenshot the list is empty, but I think that the GetOverlapSphereObjects just before the ListIsEmpty is adding to the _playerVisible list.
        You can add a simple Wait JUST before the ListIsEmpty condition and make sure that at that time the list is indeed empty.

        Let me know if my assumtion is correct or there is something else going on here 🙂

        Cheers!

        #19655
        dsedov
        Participant

          I found what the problem is. GetOverlapSphere actually returns false if it has not found any objects, so all the nodes after it are not even executed. I’ve redone the tree and it all works just fine now.

          #19654
          Gavalakis
          Keymaster

            Yeah GetOverlapSpehere returns failure if no objects found. Maybe I should add this as an option.

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