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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Proper way to implement weapons

I have a half baked weapon setup but i need to know what the ideal way of having different weapons is.

Currently i just have a c++ base class that has a few variable in for ammo and the name of the weapon etc.

the only problem is i have a very messy time getting things working and i have to copy and paste nodes all over the place.

I thought it would be better if i make a basic weapon blueprint off that and then made the rest a child blueprint of that but it doesnt copy the event graph over so im asking: what is the preferred way to do this?


Product Version: UE 4.18
more ▼

asked Jul 05 '18 at 03:41 PM in Blueprint Scripting

avatar image

Danny Taylor
35 1 2 10

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

1 answer: sort voted first

but it doesnt copy the event graph

Functions and Event are inherited. You can call or override parents' functions from the child.

more ▼

answered Jul 05 '18 at 04:53 PM

avatar image

14.6k 76 25 61

avatar image Danny Taylor Jul 06 '18 at 01:26 AM

are the inherited functions all exactly the same as they are in the parent and it just doesnt show every individual node hooked up?

avatar image Everynone Jul 06 '18 at 06:54 AM

Yeah! That's the whole point of inheritance, you write the code once and maintain it easily. The nodes do not show up but that's normal - there's no point in duplicating all that code. A child can use parent's stuff as is and/or extend it and add its own functionality.

Have a look at his post:


(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