I’m Trying to create a system that allows a character to equip different spells not a hotbar or action bar i want to be able to go into my inventory or spellbook if you will and select a spell and equip it to my character which then my character will be able to use the spell much like how skyrim uses their spell equip system. And PLease if youre gonna explain it in words please have a picture of what your explaining or be very detailed in what your saying like connect this node to this node or right click and click this or type this etc
alli can find for such thing are action bars and hot bars i dont want these i want to equip them like a sword but use them like a spell
I HAVE DONE IT. Heres what you will need to do
create a sphere collision by clicking add component in the components box and scroll down to sphere collision
now you need to enable the input so that way your attack button will actually work so
- right click on the sphere collision in components box and move your cursor over add events and click on On Component Begin Overlap (Sphere)
- then do the same but this time click on On Component End Overlap (Sphere)
- In begin overlap drag from the execute and drop then type Enable Input
- From the player controller node drag that out drop it and type Get Player Controller
- do the same for the end overlap except this time connect the Player Controller node to the Get Player Controller function we already created
Now your attack event will work in this blueprint but dont forget to go back to the viewport and play with the size of your sphere to make it work cause you want your character to collide with it
in the project settings you wanna create an input so the game knows what key youre pressing so go do that and if you dont know how well then
- Clcik Edit (top Left corner of the editor page)
- Click Project Settings (bottom of little selection window)
- Scroll Down on the bar where you see all of the menus to choose from
- click on Input in the Engine
- Action Mappings Clcikon the +
- Name your Button Attack
- Choose its button now whether thats the right trigger or key board button or left mouse click
back into your actor blueprint,
right clickin the empty graph space and type (Your Buttons Name) and hit enter
now you have an attack function or a use function in the game when this character is in the vicinity of the object or whatever the character will be able to activate use or what have you
for mine i am telling it to play a character animation based on if my character is casting a 1 handed combat spell in which we need to make it to where when you press your attack button it need to tell the charcter that 1hcombat return true
THIS ALL IS BASED ON VIRTUS HUB TUTORIALS FOR RPG CREATION THE CASTING1HCOMBAT IS USED IN HIS TUTS WHICH EPIC LIKE TRULY
thank you al for following along and this was how i made it to where when i have the spell equipped and i press my attack key my character attacks with it