ForXSeconds

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

    How would you suggest checking this case?

    If (LookingAt Target ForXSeconds)
    if(ButtonFire1Held ForXSeconds)
    ….Fire Action

    Maybe a ForXSeconds Decorator that checks something like:

    #8845
    Gavalakis
    Keymaster

    Hello,

    If I understood correctly, basicaly the condition is a pre-condition of a wait action.
    In the tree image attached, if you keep button pressed for 1 second, the the parent sequencer will continue to the next action.
    If you release the button before 1 second has passed, because the Sequencer is Dynamic, it will revaluate the condition and thus the sequencer will return Failure to the parent.

    The same effect can be achieved with a Dynamic Conditional Decorator.
    Is that what you are after?

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

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