Question about Dynamic Sequencer

NodeCanvas Forums General Discussion Question about Dynamic Sequencer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16819
    xcxcxc77
    Participant

    Hi, I’m new for BT and experimenting some functions,¬† and when I use Dynamic Sequencer, there are some behavior that I cant understand.

    I am trying to crate an AI for enemy to searching enemy when they saw player(i set awareness distance to zero so player could sneak from their back and use melee attack) and quit searching when they cant see player and not in certain distance( bit like how awareness distance works, cus I dont want them to lose target when player “rotate” around them).

    When I run the BT, I hope¬† when the “Cant see+not in distance”condition meet(in the blue circle, left node), the right node wont excute, but in fact the right node do excute, and the whole BT keeps flickering.(Maybe I set too many Dynamic nodes?)

    Could you please give me some hints on what I did wrong here that led to this situation occurring?

    Attachments:
    You must be logged in to view attached files.
    #16820
    xcxcxc77
    Participant

    Here’s the screenshot of the BT.

    NodeCanvas0405

    #16840
    eloycutt
    Participant

    <p dir=”ltr”><span style=”color: #000000; font-family: Arial; font-size: 15px; white-space: pre-wrap;”>British Airways Seat Selection</span></p>
    <p dir=”ltr” style=”line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;”><span style=”font-size: 12pt; font-family: Cambria,serif; color: #0e101a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;”>Are you looking for information on how to select seats on British Airways flights? I’d be happy to help!</span></p>
    <p dir=”ltr” style=”line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;”><span style=”font-size: 12pt; font-family: Cambria,serif; color: #0e101a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;”>To select your seat on</span><span style=”font-size: 12pt; font-family: Cambria,serif; color: #1155cc; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: underline; -webkit-text-decoration-skip: none; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;”> British Airways Seat Selection </span><span style=”font-size: 12pt; font-family: Cambria,serif; color: #0e101a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;”>, there are a few different options available depending on the type of ticket you have and when you’re travelling. Here are the different ways you can select your seat: </span><span style=”font-size: 12pt; font-family: Cambria,serif; color: #0e101a; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;”>During booking: If you’re booking your flight directly through the British Airways website, you’ll be given the option to select your seat during the booking process. Simply choose your preferred seat from the available options on the seat map.</span></p>

    #16847
    Gavalakis
    Keymaster

    Hello there and sorry for the late reply.

    Considering I understood correctly, you could achieve what you want in a simpler way using the typical If-Else pattern for behaviour trees likeso in place of your top-right Selector node:

    IfElse

    Please let me know if the above works for what you want to achieve.

    Thanks!

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

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