I want make a ARPG Game,And the character using sword etc.The sword attach to my character’s hand.But when the character paly animations and let the sword move,hit event can not generate.How can I generate hit event when the actor attach another?
Are you using a custom collision profile or one of the default ones? I also use attached weapons and had to make a custom profile so that it would collide as I expected.
Hm, that’s strange.
I’m not sure what it might be without seeing your setup. It seems like it might be that collision is still not properly setup. If the object is not attached to the actor, do you get hit events correctly?
Is the character capsule or the character set to collide?
If the actor is moving by self,the hit event will be triggered(add a movement component etc.).But if the actor attach to another and not move by self,hit event can not be triggered.I am sure the collision setting is OK.
The blue text is the hit location, right? If so, it seems like it there is still something not correct in your setup. Is your OnHit event registered on the correct component? For example, if you registered the event on the character’s mesh, instead of the capsule, this kind of problem might happen.