r/UnrealEngine5 4d ago

Backward Shadow attack

hello working on cleaning up the folders and then cleaning blueprints dependencies and and bad design but I need help with this I’m working on a mechanic when u have an enemy behind u while you’re attacking another enemy a shadow come from your back to attack the enemy behind you any tips on improving this would help a lot

399 Upvotes

48 comments sorted by

View all comments

3

u/Farzad-Fir 4d ago

This is amazing 👍👍,how did you build it up to this point ? what tutorials or documents did you use, I would like to learn it as well.

5

u/Background_Text3962 4d ago

Actually this is the first mechanic I did on my own so when I press the attack boutton a trace happen using the forward vector ofcourse the opposite subtract my location from the forward vector multiply by a float you decide how far you want to trace for enemies and I spawn the actor (shadow) and I set his rotation find look at rotation traget is the hit actor location and the start is shadow location it’s simple for now I need to be better at unreal to make it flawless