Action never return success

NodeCanvas Forums Support Action never return success

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10181

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

    See screenshot of the tree

    #10184
    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!

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

    #10183

    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.

    #10182
    Gavalakis
    Keymaster

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

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

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