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"

Child actor not collided correctly

Hi !

I'm struggling with this problem for maybe a week and I can't get how to correct it.

I have a MeleeWeapon blueprint that must call the function "ReceiveAttack" of a Player or NPC when it collides with one or another. The problem is with shields. I want to do something else to ReceiveAttack when it's a shield which was touched.

The Shield Actor is a child actor of my Player or NPC and is attached to the mesh.

My Shield actor has a correct collision and can overlap with the MeleeWeapon as it prints "hello" to the screen when something touches it. But when I have the OnBeginOverlap event on my MeleeWeapon (or OnComponentBeginOverlap), the shield is never shown as overlapped.

I think it's a problem about the shield being child of another actor or attached to the mesh.

I also tried with ComponentBeginOverlap, but it only says the weapon overlapped with the mesh.

Here are some screenshots :

MeleeWeapon, with the print string that only shows Player as overlapped, or Mesh as component : alt text

Shield, that says hello when overlapping the weapon : alt text

A screenshot of the game. It says Player26 for my character, TestNPC2 for the attacking NPC and Hello when my shield is sensing an overlap : alt text

Thank you for your help, ManuHeel.

Product Version: UE 4.11
Tags:
meleeweapon.png (385.2 kB)
shield.png (214.9 kB)
screenshot.png (560.6 kB)
more ▼

asked Apr 17 '16 at 12:00 PM in Blueprint Scripting

avatar image

ManuHeel
71 4 8 17

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

1 answer: sort voted first

I finally "corrected" the problem by myself after changing the way it works.

I now have a blocking collision for my shields created at the player spawn and attached to the player mesh, and it moves and activates according to the shield usage.

I really think it's a problem coming from child actors, but I must say I'm a bit disappointed no one tried to help me.

Hope this will help someone.

more ▼

answered May 14 '16 at 09:37 AM

avatar image

ManuHeel
71 4 8 17

(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