Pawn Sensing or AI Perception for simple enemy AI?

Hi, I’m working on implementing A.I. functionality in my project. The bot behavior is limited to the following things:

  1. Move towards a certain point in the level

  2. If player is within sight range, attack the player

  3. If the player is outside the sight range and attacking the bot, move towards the player and attack him once in range.

  4. If the player is outside the sight range and not attacking the bot, continue along the original path in step 1.

I’m not planning to implement any advanced behaviors above the aforementioned. So I would like to know which would be a better route to take given the situation: AI perception or Pawn sensing?

The tooltip for the pawn sensing component shows that it doesn’t work with network clients. I don’t have any knowledge working with network and replication. So does this mean that if I plan to implement multiplayer in the future, pawn sensing component wouldn’t work?

I can’t speak to the networking side, but PawnSensingComponent is likely to become deprecated before too long, AIPerceptionComponent is intended to replace it. Having said that, AIPerceptionComponent is still work in progress and completely undocumented. A few more people are beginning to switch to it recently though, so hopefully a bit more information will start to become available soon. If you need to start working on AI now, it’s probably the better choice.

Thanks, I’m going to go with A.I. perception system.