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 to reference a weapon for an attack in Blueprint

Hello everyone,

I am trying to create a game in which you can use a bass guitar in the form of a club. Now, I've set up the collision models for the enemies, but I can't seem to get it so that only when the bass guitar's collision box hits them, the enemies die (for now I am after a one-hit death, I will extend later).

I can build it so that when the entire character touches them, they die, but this isn't good enough.

Is there anybody that could help me design a way to do this?

Thanks in advance!

Product Version: UE 4.9
Tags:
more ▼

asked Feb 22 '16 at 02:51 PM in Blueprint Scripting

avatar image

Komsur
5 1 5 11

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

2 answers: sort voted first

You can highlight your weapon in your character blueprint component pane like this:

alt text

and for something simple you could do this to prevent your character from dealing damage to unwanted targets, where you would handle your damage if branch == true.

alt text

more ▼

answered Feb 22 '16 at 05:43 PM

avatar image

JoshieZombie
271 21 19 25

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

Hi, thanks for getting back.

I've used what you've said, but it still isn't working.

Here's a screenshot of what I've done.alt text

bps.png (122.0 kB)
more ▼

answered Feb 24 '16 at 12:17 PM

avatar image

Komsur
5 1 5 11

(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