i just need help pleasse

everything is going wrong

2 Likes

Hey @LoganPaddled.

Don’t worry, you’re in the right place.

Unless your issues are unrelated to Unreal Engine in which case… Maybe we could point you to the right place!

If you DO have anything related to Unreal Engine… Start with a large, overall issue, then try to compartmentalize it. Break it down into smaller pieces, then start tackling them one at a time at the smallest level you can make it. Don’t worry about making it all work together until you get the smaller bits done.

You can come here and bring us any of those small bits, make a post about it, and there are lots of us that would be happy to help! We’re a community here, and we’re creating a living library as we make these posts- questions and their accompanying answers are a part of that! :slight_smile:

When you start getting frustrated, just drop it in here and see what we can come up with. You can do this, and we can help! We all get stuck, I PROMISE you that.

1 Like

thank you so much and i do have a question i am trying to make a health bar but the healthbar o the screen isn’t updating and every enemy one shots me do you know why this might be happening

Welcome! Can you put a screen shot of your health widget? Also a video of what is going on against one enemy so we can understand your side.

it got even more weird now sometimes i am just dying whenever i touch the floor

i hope that helps i sent a video and and photo above

i have fixed some stuff i am no longer dying intantly and the healthbar is moving it just seems like i am taking damage from enemys that are not even close to me

i set up a string to tell me when i am getting attacked and its always triggering

What you need to do over here is.

IF (Distance To ( Get Actor Location (Self) , GetActorLocation(BPThirdPersonCharacter) ) < Range )

then attack.

How you calling attack on tick?

i am new but i think this is what you are asking for

there is a event to check distance to player i dont really know how that works tho

i can send you the tutorial i am following i don’t know if that will help tho

Wave Based Survival - Player Health Bar | Unreal Engine Tutorial Series

Try to do something like this

Every CanAttack? Timer

Check If distance between target and self is less then 100 then apply damage. (you can use your AttackPlayer - Take Damage function if you like however there is already a fair enough good damage system integrated in unreal)

try step by step first without rush and keeping a clean code :slight_smile:

First try 1st image Target = Player


this is always zero so enemy always attack
result : you always get damage as player

Solution

-Check Distance correctly
-Check Distance between Self and BPThirdPersonCharacter

1 Like

i followed the first photo and were does the second photo go is that in my player

its working thank you so much

1 Like

My pleasure, don’t hesitate to ask when you get stuck.

1 Like

okay sounds good

1 Like