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"

Melee combat system not applying damage

I'm trying to implement a fairly simple melee system using the guide here. However, as you may have guessed, it's not working right. alt text This is the blueprint on my player character, it's supposed to get the overlapping actors of the Melee collider volume when the player clicks LMB, then apply damage to every actor in the "Combat_AI_NPC" class that overlaps the volume. However it doesn't seem to be getting any actor references from the get overlapping actors function.

alt text (Player Melee Collider collision settings)

alt text (Target NPC Collider collision settings)

alt text This is the script on the target NPC that is currently handling damage, I've tested that the colliders are actually seeing each other from here by using this script here; alt text However, having every combat-enabled NPC check every tick for something to damage it is really inefficient...

Any ideas?

Product Version: UE 4.10
Tags:
more ▼

asked Feb 08 '16 at 11:24 PM in Blueprint Scripting

avatar image

venum4k
6 3 3

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

1 answer: sort voted first

Looks like I've solved it, in the get overlapping actors function I had it set to get the actor, not the component, now it seems to work fine.

more ▼

answered Feb 09 '16 at 12:48 AM

avatar image

venum4k
6 3 3

(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