x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Spell Equip

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

Product Version: UE 4.16
Tags:
more ▼

asked Sep 26 '17 at 11:46 PM in Blueprint Scripting

avatar image

Sebluer97
1 1 1

avatar image Sebluer97 Sep 26 '17 at 11:47 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I HAVE DONE IT. Heres what you will need to do alt text

create a sphere collision by clicking add component in the components box and scroll down to sphere collision alt text

now you need to enable the input so that way your attack button will actually work so 1. right click on the sphere collision in components box and move your cursor over add events and click on On Component Begin Overlap (Sphere) 2. then do the same but this time click on On Component End Overlap (Sphere) 3. In begin overlap drag from the execute and drop then type Enable Input 4. From the player controller node drag that out drop it and type Get Player Controller 5. do the same for the end overlap except this time connect the Player Controller node to the Get Player Controller function we already createdalt text

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 1. Clcik Edit (top Left corner of the editor page) 2. Click Project Settings (bottom of little selection window) 3. Scroll Down on the bar where you see all of the menus to choose from 4. click on Input in the Engine 5. Action Mappings Clcikon the + 6. Name your Button Attack 7. 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 https://www.youtube.com/watch?v=pgIJqiZQ-2Y&list=PLL0cLF8gjBpqA8DcrhL_O9kD4jsUqhDR6

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

blueprint.png (252.6 kB)
blueprint-input.png (242.4 kB)
more ▼

answered Sep 28 '17 at 08:27 PM

avatar image

Sebluer97
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question