ForXSeconds

  • This topic has 0 replies, 2 voices, and was last updated 11 years ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14552
    apieceoffruit
    Participant

      How would you suggest checking this case?

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

      Maybe a ForXSeconds Decorator that checks something like:

      #14553
      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?

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