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"

How should I go about creating a "master creature/enemy" that all other similar creatures inherit functionality from; while having different meshes and behavior?

-How should I go about creating a "master creature/enemy" that all other similar creatures inherit functionality from; while having different meshes and behavior?- First post ever. Apologies ahead of time for any improper formatting of this question post.

Product Version: UE 4.20
Tags:
more ▼

asked Nov 30 '18 at 06:41 AM in Blueprint Scripting

avatar image

King Baldwin IV
1 1 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

all you need to do is to create the class which will act as the "master" then have the specific enemy classes be a child of the master. if you want a different skeletal mesh for each enemy you can either add the mesh in at the child level or add a mesh to the parent then set the value of the mesh in the details panel for each child (the second option is the way to go really). as for behavior, that depends, if your using behavior trees then you simply set a different tree for each child enemy, if using just scripting then you will have to have the script in the child.

more ▼

answered Nov 30 '18 at 02:55 PM

avatar image

ThompsonN13
9.3k 32 8 23

avatar image Nebula Games Inc Dec 01 '18 at 11:52 PM

ThompnsonN13 is correct, you just need to create a "parent" class and then create child BPs from that parent. If you want a walk through on how to do it I have created a basic tutorial on parenting, link is below.

https://youtu.be/0QmXF6hxljA

avatar image King Baldwin IV Dec 13 '18 at 05:26 PM

Thank you Nebula! I will definitely look into that video. Thank you for the response.

(comments are locked)
10|2000 characters needed characters left
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