I was wondering someone could help me out. I have a slight problem with my enemy AI line trace. The line trace works for the most part, the only problem is when the AI is on a higher or lower platform the line doesn’t exactly p
oint toward me like it’s supposed to. The only way it will point towards me is if me and the enemy are on the same level. I have screenshots of the issue.
Hey there @ShakCQNQ! What are you tracing towards? Many games solve this issue with setting up sockets to check for visibly, then tracing towards one that is exposed to the enemy.
A trace can be simple - start point actor A, end point Actor B world locations - or complex; weapon always linetrace in line with bore, then you have to align aim.
A common way to align aim is using an Aim Offset.
The output of most AOs will be decent enough to have line traces work, but have limits still because of maximum angles you can reach.
What is your situation? Share some BP or code screenshots to debug it.