NokiMo
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine 5 - Top Down Shooter #13 - Shooting Target Line

In this episodes of the top down shooter series, I am going to add a new feature to show a line to target location from the nozzle of the gun. This feature is added to help player understand clearly if the targeting point is blocked by any other object in the world. If the game is on third person or first person mode, as the gun aiming direction and the player's view is aligned, we can clearly see f the path the bullet will take is clear or not. But it is harder to guess that from a top down view. Also, this is specially helpful if the character is crouching behind a short wall. If there is nothing blocking to the target point, a red line will be drawn from nozzle to target and if there is a blocking object in the middle, the red line will be drawn only until the hit surface and from that point onward, the line drawn will be black.

Project files

Unreal Engine 5 - Top Down Shooter #13 - Shooting Target Line

Comments

Not yet. I will update tomorrow. It still need some testing

Thilina Premasiri

I was wondering to do it!! amazing update, is it in the 5.6 version?

Nicolas Hidalgo


Related Creators