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
    Posts
  • #34817

    jahshuwuh
    Participant

    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?

    #34831

    prime
    Keymaster

    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.

    #34843

    jahshuwuh
    Participant

    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.