News Forums RAIN Sample Projects, How To, and Code WaypointPath child nodes

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Sigil 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38830

    Alex3D
    Participant

    Hi,
    Does WaypointPath decision can have single Move child node only? It seems that it’s other child nodes has no effect.
    Thanks

    #38835

    Sigil
    Keymaster

    It will run through the children like a sequencer, so if the Move node is first, it will execute that until you reach the first waypoint, and then move on to the next node. Once all of the children have returned success it will move on to the next waypoint.

    Try this in your behavior tree just to test:

    waypoint path (with your values)
       move (with your values)
       expression (expression: debug("Got to a waypoint"), return value: success)

    You should see that output “Got to a waypoint” in your console every time you get to another waypoint.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.