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"

What is the best practice for classes defined by weapons.

Challenge Statement: I have been working on playing around with some concepts in UE4.9 where a characters playable class is defined by the weapon they are holding. A ranged archers animations and whatnot are defined by them holding a bow. However if they want to be a fighter they hold a sword which has different set of animations, etc.

I am not confident in which method is best practice when defining a playable character's class through the weapon. Should there be an overall game parent character blueprint that has tasks universal across the game and all the classes and have child class based blueprints that are playable class specific, such as a fighter which defines proper skeleton / animations, variables specific to class, etc. I am frustrated / unsure that I am going down the right path due to my lack of experience in implementing this most efficiently in Unreal Engine.

Request: Guidance on best practices for doing this so that a player could be limited to one character but can switch out classes based on the weapon they equip.

Product Version: UE 4.9
Tags:
more ▼

asked Sep 18 '15 at 12:36 AM in Blueprint Scripting

avatar image

Konshu
3 1 4 5

avatar image Timmeh_ZA Sep 18 '15 at 02:09 AM

Not sure about best practices, but couldn't you just have a single character with an animation blueprint that switches between different weapon states based on say, a WeaponType enumeration?

So when you select different gear, you can run a function to modify the enum as well as all the characters variables you want to change to suit the new gear (hasRangedAttack, armor, hitpoints, etc , or even the mesh and animBlueprint if you really need to).

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

1 answer: sort voted first

Wow, I actually didn't think to actually use the states to manage the weapons like that, so thanks for the input. I spent so much time actually trying to force UE4 to rotate between whole pawns and blueprints specific to class. Gonna give this a go tonight.

more ▼

answered Sep 18 '15 at 04:05 AM

avatar image

Konshu
3 1 4 5

(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