AI interaction with object and player

Hello guys,
I’m trying to set up a more advanced AI for something that I’m currently testing and I’d like to ask if anyone knows how to make an AI interact with an object and how to interact with a player.
For more information I’ll present some more details and a scenario that I’d like to recreate.

The AI should come into a room and there are objects where a player can hide in (for example 3 lockers). Now I’d like my AI to choose between one of the objects (in this case the 3 lockers), move to that location and lock onto the locker and play an animtion while the door is being removed. If a player is in there the AI should grab onto the player and throw him out of the locker.

I already have some ideas on how to create some of the things mentioned, but I’m stuck with others. So for example I don’t know how I would set up the blueprint for the (example) locker so that the AI can choose between them and then lock onto it (I’d guess you need some kind of TargetActor in the locker blueprint where the monster can smoothly teleport to when in range?)(problem two is that it should be room-specific. When there are other lockers in range but in a different room the AI should not lock onto these only the ones in the room) . Then I’d set up animations for the AI and the player controller (root motion animation) to get the player out of the locker.

Thanks in advance! :slight_smile:

1 Like