Getting AI Characters to Interact With Objects
Hey there, just wondering if anyone has any links to some tutorials regarding this. I have looked around a bit, but can't seem to find what I'm looking for. For example: I have a chair and an AI character, and I want the ai character to see "sitting in that chair" as an option for it's behavior. I noticed that in the Skyrim creation kit that interactable objects have a ghost image of the interaction that it can perform. I don't need the visual representation, but I'd like to set up a master bp that registers as an interactable and it's children can specify the correct animations and stuff to use.
Here is a link to the Skyrim reference that I mentioned: http://2.bp.blogspot.com/-DXYBAIyH820/TzKKR7zQuqI/AAAAAAAABu4/tLDFG1XEnf4/s1600/Untitled.jpg
asked Mar 06 '18 at 01:13 PM in Blueprint Scripting
Not sure what exactly is holding you up on this. Getting AI to "sit in a chair" as an option is no different from "simpler" things like "shoot player", "chase player", "roam" etc. It's all about the logic you build for it. Do you want the AI to randomly roam and then if it roams close to a chair sit down? Well you would just set up some basic roaming logic, then have a chair with collision sphere the size you would like for this interaction to occur. Then when AI overlaps this area by chance tell it to play whatever animation you like and then script it's movement from where it is to the chair and play a sitting animation when it reaches the chair. Or have a branch on overlap and set up other logic to let it "decide" whether it wants to sit or not.
answered Mar 06 '18 at 03:24 PM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here