How does our AI sense?

We explained what components to use in order to have our AI sense other pawns in the world. We could customize settings for sight and sound. The perception system would then return any pawn matching these criteria with each update.

We could potentially use the pawns we sense for more than attacking. If we also use it to calculate the best cover, our AI would be reactive to our location. Setting certain criteria allows us to then tell the AI when it's the best time to enter or leave cover. Then, adding additional criteria will allow control over the enter and exit movement behavior.

Get Unreal Engine 4 AI Programming Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.