Code Monkey home page Code Monkey logo

Comments (4)

Calamari avatar Calamari commented on July 20, 2024

Contraquestion: Why would you return RUNNING in the first place, if you don't want that task to go on (keep running)? Why not simply return SUCCESS in that case?

from behaviortree.js.

gonnavis avatar gonnavis commented on July 20, 2024

https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/ArtificialIntelligence/BehaviorTrees/BehaviorTreeQuickStart/
image

Say in this structure, I want FindRandomPatrol only run once until moved to dest, because of I don't want change dest when moving.
So I let Move to return RUNNING, then I achieved this goal, and node 111 will return RUNNING too.

But I still want the AI to chase player immediately if Has Line Of Sight to player when AI is moving.
So I need a non-remember version Selector in this case.

from behaviortree.js.

Calamari avatar Calamari commented on July 20, 2024

Thanks for that very clear picture. I like.

Currently, I would solve it, with just letting "Move To" put a target location into the blackboard (maybe calling it "Select Target Location") and return SUCCESS, so there can be node in the selector before that one that actually moves the actor as long as a target location is set.

But that is just from the top of my head. I'll think about this further and do some reasearching, maybe you've got a point there. I am intrigued.

from behaviortree.js.

gonnavis avatar gonnavis commented on July 20, 2024

Currently, I would solve it, with just letting "Move To" put a target location into the blackboard (maybe calling it "Select Target Location") and return SUCCESS, so there can be node in the selector before that one that actually moves the actor as long as a target location is set.

This should be a good way too. Many thanks! I'll try.

from behaviortree.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.