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"

Should Weapon Behavior be in Character_BP Or Weapon_BP?

Should Weapon Behavior(Ex. Projectile Spawn, Particle Effects, or Sound) be in The character_bp Or Weapon_bp.

Product Version: UE 4.21
Tags:
more ▼

asked Feb 07 '19 at 04:42 AM in Blueprint Scripting

avatar image

Fatherg00se
21 1 1 5

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

2 answers: sort voted first

Depends on your personal preference to some extent. Generally I would use a separate bp. If you have multiple weapons or if the weapon can be separated from the player, I would give the weapon it's own bp for sure. Even if you are only using one weapon you also should consider if you will have just the player to use the weapon or if the enemies use the same weapon. Using a separate bp is nice since if you need to adjust the weapon you only need to do it in one place.

However, if you have only have one weapon then the character bp shouldn't get too cluttered if you decide to include it. It also may be a bit faster if you're just prototyping.

more ▼

answered Feb 07 '19 at 05:32 AM

avatar image

IndieGameCove
1k 5 4 10

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

Depends on the project and how you want to handle it. There's not "set in stone" UE law that says you have to do it this way.

If you're going to be serious about your project, I would most like put in a gun blueprint. For example, my game has multiple guns, so I've constructed a base weapon blueprint that my guns inherit from. It handles everything related to guns: meshes, animations, particles, shooting, reloading, playing its sounds, etc. A player just knows it's an object to pickup and have actions performed when buttons are pushed.

Hope that helps!

more ▼

answered Feb 07 '19 at 05:32 AM

avatar image

mrteuy
121 2 2 4

(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