# How to get pitch from AI to player for correct AI aiming? (Aim Offset)

**URL:** <https://forums.unrealengine.com/t/how-to-get-pitch-from-ai-to-player-for-correct-ai-aiming-aim-offset/410402>\
**Category:** Character & Animation\
**Tags:** ai-navigation, aim-space, unreal-engine, question\
**Created:** [November 23, 2017, 1:53pm UTC](https://forums.unrealengine.com/t/how-to-get-pitch-from-ai-to-player-for-correct-ai-aiming-aim-offset/410402 "2017-11-23T13:53:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [November 23, 2017, 1:53pm UTC](https://forums.unrealengine.com/t/how-to-get-pitch-from-ai-to-player-for-correct-ai-aiming-aim-offset/410402/1 "2017-11-23T13:53:18Z")

</div>

Hello

I’m working with my AI now and I stuck a little.

I need pitch for correct AI aim space. It working strange now (I just not understand yet how). When my AI strafing or sometimes only standing, it use aim space well - weapon is directed to player. When my AI moving or standing, AI aiming yaw working well, but pitch not.

In short words, AI can aim well when player is on same level, when is higher or lower than AI - problem starts. What strange for me, no problem when AI strafing.

This is more connected with AI pitch output than animation bp I think, because this part I tested a lot and when strafe works.

Any tips appreciated!

---

<div class="post-metadata">

**Author:** ![GreatPasta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GreatPasta](https://forums.unrealengine.com/u/GreatPasta)\
**Post date:** [August 6, 2020, 3:01pm UTC](https://forums.unrealengine.com/t/how-to-get-pitch-from-ai-to-player-for-correct-ai-aiming-aim-offset/410402/2 "2020-08-06T15:01:36Z")

</div>

What solution?
