I am trying to create a FPS Game, and I want to be able to check if an enemy can see and fire at the player, by using a line trace by channel node.
This is what I did
I don’t know what is wrong in my blueprint, I just want to check if the enemy can fire at the player, by checking if there is any other object between them.
Can you please help me?
I found the solution, it was a mistake i did.
Now I set the tracer to ignore the enemy, and I added a bit of height to the start point, and set the end point at the player camera location, not the player location(that was at the ground level)
Now everything is working ok!