# How to use AI prediction sense?

**URL:** <https://forums.unrealengine.com/t/how-to-use-ai-prediction-sense/224807>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [April 16, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/how-to-use-ai-prediction-sense/224807 "2021-04-16T23:17:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmancoder1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmancoder1](https://forums.unrealengine.com/u/jmancoder1)\
**Post date:** [April 16, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/how-to-use-ai-prediction-sense/224807/1 "2021-04-16T23:17:41Z")

</div>

I don’t really get what the documentation says about it, because nowhere does it mention actually _returning_ any prediction values. The Request Controller Prediction Event only requests the event for the specified Pawn, so how do I find out what the predicted value actually is?

---

<div class="post-metadata">

**Author:** ![chrudimer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chrudimer/32/918651_2.png) [@chrudimer](https://forums.unrealengine.com/u/chrudimer)\
**Post date:** [April 17, 2021, 4:43pm UTC](https://forums.unrealengine.com/t/how-to-use-ai-prediction-sense/224807/2 "2021-04-17T16:43:53Z")

</div>

Hi, from looking at the source code you get the value from your AI perception component, same as you would get something from it when it sees or hears something (for example for hearing you would use a noise event then all the AI in range with hearing sense would get that, with the prediction you just do it for only one AI).

So for example if you use OnTargetPerceptionUpdated, then as soon as you use RequestControllerPredictionEvent, then from the AIPerceptionComponent of the Requestor you will get an update through the OnTargetPerceptionUpdated and the predicted location will be the StimulusLocation.

But since PredictedLocation = CurrentLocation + Velocity \* PredictionTime and you can’t access the PredictionTime from the Stimulus I don’t see much usage for it, especially since you can easily do PredictedLocation = CurrentLocation + Velocity \* PredictionTime yourself when you need it…
