Fixed it by setting length to 0.25
@Mind-Brain one more problem though. If I press the attack button multiple times in succession to the same enemy then I go off the map.
2023-01-09 20-18-29.mkv (13.0 MB)
home dawg, people like mind brain are volunteer moderators and/or users. Everybody is also making their own games. This isnāt like a customer support hotline.
You are going to continually face many challenges in trying to make a game - you wonāt be able to have people on forums help you for every problem.
If you cannot go more than two steps on your own, that is indication that you are taking on too much of a challenge.
YOu are trying to make a AAA game mechanic but you donāt yet have Pong skills. You need to take a few steps back and learn the basics.
Okay so whatās happening is itās restarting the logic in that execution line every time you hit enter. So what weāre going to do is split that line!
Right click and make a CustomEvent (name it whatever but try not to rename it afterward to avoid confusion). Move your āenterā part away from the rest of the code, including the branch. Then off of the āFalseā line, CALL your custom event (it should be what you named it). Like so:
And that will prevent restarts of the line if you are already attacking
Alright, thanks!
Would I use the same timeline or make a new one?
Youāll plug your Custom Event into the timeline you already have! Youāre just replacing the āEnterā input and āIsAttackingā check.
So before it was:
Enter-> Restart all logic ā Check IsAttacking ā If False, do timeline.
Now, it is:
Enter-> Restart all logic UNTIL custom event ā Check IsAttacking ā If False, Do Custom Event.
Custom Event gets run ā cancel execution if line is running->do timeline.
So by splitting it up we are creating multiple threads. A stopgap, if you will. So pressing enter wonāt cancel anything after the custom event, which was the issue. Because it canāt proceed unless IsAttacking is FALSE, which wonāt happen until the execution of your timeline is finished
Unfortunately, the same thing is still happening.
2023-01-09 21-41-29.mkv (17.7 MB)
Nevermind! I fixed it!
@Mind-Brain just wondering is there any way to hide the sphere trace? It gets kind of disorienting
Yeah! Itās in the dropdown you currently have as āFor Durationā!
Thanks! Right now Iām working on making the enemies have hit reactions, but I canāt seem to get it to work.
Hereās my code:
ThirdPersonBP:
My ThirdPerson_AnimBP:
And my AI_BP:
So Iām seeing one integral piece that is missing, and that should clear things up!
Where is damage being dealt? Because right now thereās a lot of āOn Take Any Damageā but no damage is being taken by anyone, at least not in any code youāve shown so far. Have you just forgotten to show it or didja forget it
Oh right, I think I just forgot it
I accidentally posted the same photo twice hold on
Gotcha! Now what causes this event to fire?
What about calling this Event? (thatās the light blue one with the envelope)
As of right now, thereās nothing saying āHey, do the thing that does the damageā. You have āThe thing that does the damageā but thereās no ādo thatā. Does that make sense?