Announcement

Collapse
No announcement yet.

Shield block sword attack

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [VIVE] Shield block sword attack

    Hi I have a sword BP that inflicts damage when it overlaps with the AI
    Click image for larger version

Name:	SwordDamage.JPG
Views:	3
Size:	106.8 KB
ID:	1211896

    In The AI BP I set up a bool to tell when the sword overlaps with the shield

    Click image for larger version

Name:	BranchShield.JPG
Views:	3
Size:	53.5 KB
ID:	1211897

    And back in the sword BP I set it up so that when the sword overlapped with the A.I's shield it wouldn't take any damage away and play a sword hitting a shield sound effect.

    Click image for larger version

Name:	hvghje.JPG
Views:	3
Size:	149.3 KB
ID:	1211898

    The only problem is that after hitting the shield for the first time even when the sword doesn't overlaps with the shield it makes the same sword hitting a shield sound effect and it's impossible to give any damage. I'm not sure what is going wrong here. Is there any better way of doing this?
Working...
X