Creating Battle Zones
Hello, I'm currently working on a project thats RPG based. Think RPG on the style of... Kingdom Hearts maybe. Not inspired by but its a good example. I'm trying to think of a blueprint script for when the original character enters a distance from the enemy, Theres a "zone" in which combat is to take place. Until you defeat that enemy, you can't leave the zone. For instance, a boss battle. I would also like insight in leaving the zone or Escaping normal battles. I've seen a few tutorials on UE4 and setting up an RPG in 3rd person view but, no luck in thoughts for creating one. Also, I intend for the boundary to be visual. Not just an invisible wall. Anyone know any tutorial sites that explain this? I've tried searching on youtube but no luck so far.
asked Aug 11 '18 at 04:36 PM in Blueprint Scripting
On reading your question, I can only really suggest that you use a mesh of some description.
This would permit you to block character movement via collision as well as represent the barrier with a material on said mesh.
This mesh could be a cylinder with its faces inverted to face inwards towards the zone and could even be scaled depending on the size of the battle zone.
I'm under the assumption that these battles would take place in an external environment, and so an area that cannot be easily sealed off by doors etc.
An alternative would be to take the Devil May Cry approach in which demonic barriers appear at set locations to block your path. This would also be pretty easy to set up, depending on your gameplay and environment.
Does this help answer your question?
answered Aug 12 '18 at 12:57 AM
create a trigger volume centered around the enemy, and wide enough that your or the boss' attacks will be out of range unless youre inside it. event onbeginoverlap, if cause by the player, activates the enemy and unlocks their apply damage functionality (like with a gate or boolean branch) event onendoverlap if caused by the player, deactivates the enemy behavior, resets their health, tells them to walk back to the starting point. That way if you flee the battle you have to try again from the beginning state of the battle.
answered Aug 12 '18 at 02:54 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here