Hello everyone, I am currently making a project right now and I want to implement the same combat system that exists in the Batman: Arkham games: the freeflow combat system. Does anyone know how to create this system from scratch with things like auto-lock-on and traveling to the closest oppenent? Would greatly appreciate it.
@Mind-Brain I’ve seen you helping a lot of people with their problems and questions and I was wondering if you could help me create a freeflow combat system (based on the batman arkham games) from scratch on unreal engine 5 with blueprints. Would greatly appreciate it.
So you are getting an error and getting sent to World 0,0,0 because a new value for your jump location isn’t being set
Simple enough to work through!
It looks like you aren’t getting any actors returned with your sphere trace. Make sure to make the trace visible for testing purposes.
What is going into your list of ObjectTypes to scan for? That seems likely to be the point of breakdown!
So if this code is exactly what you had running in your video, you may want to make sure “IsAttacking” isn’t set to true, because you have the sphere trace set to be visible. Try putting a printString after the true branch saying “IsAttacking = True” to check for that! It seems like your trace isn’t running because that branch isn’t getting run.
And don’t worry, I’m not ignoring your other issues, it’s just that I’ve found doing things one at a time, focused, works everything out faster
Ok! That did exactly what it was supposed to do! So we now know that IsAttacking is False before pressing the button, and therefore it is flowing through the FALSE part of the branch.
Let’s set the object type and see if that makes it visible. It may not be tracing because it has nothing to look for.
In your Object Types variable, at the bottom of the Details window, you’ll see that you can add an object type. I don’t know what your enemies are, but whatever they are you should add that to your object types list with the “+” button!
Edit: It doesn’t really have to be specific, you could use Pawn, Character, or BP_WhateverYourEnemyIsCalled
It is supposed to look like that! You should give it a try now with enemies!
Also, you may want to add an “IsValid” check after your attack input, with Target Enemy as what needs to be validated, then send “Valid” through and “NotValid” you can leave blank. This will keep you from launching if you have no target, which was what was making you go to world origin
My character goes to the enemies now!
But now the problem is that my character sticks to the enemy after going to them. 2023-01-09 19-15-54.mkv (10.9 MB)
I think I see the issue for that. Right now it’s trying to go inside the enemy, you need your jump point to be sooner. Off of the Sphere trace use “out hit Impact Point” instead of Location, and give that a shot