News Forums RAIN General Discussion and Troubleshooting Handling a click event in BT

This topic contains 2 replies, has 2 voices, and was last updated by  jahshuwuh 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #34817


    If I want to trigger a models animation upon clicking him, is there a way to use a “Constraint” in my behavior tree to handle this, or should I take a different approach?



    That depends a lot on your behavior tree. Are you integrating that with other behaviors, or is that the main behavior of the tree?

    Regardless of exactly how you do it, the general approach would be to recognize the click, then set an AI.WorkingMemory variable that triggers the behavior in the behavior tree.



    Thanks, that approach worked for me.

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

You must be logged in to reply to this topic.