0
Answered

How to get enemy attacks to only effect the player?

Dante 2 months ago in Melee updated by Marti (Lead Developer) 4 weeks ago 3

Hello,

This might be a super basic question. So i am using the melee module and everything works fine. The only issue is that when I have a group of enemies, if they stand to close and attack, they can hit each other. Is there a way to set up an attack so it only plays a hit reaction when it hits the player?

Unity version:
2019.4.4f1
Game Creator version:
1.1.9

Answer

+1
Answer

1. Add a layer for "enemy"

2. Duplicate the enemies weapon model prefab and keep them seperate from the players weapons.
3. Under the BladeComponent uncheck the "enemy" layer mask.

+1
Answer

1. Add a layer for "enemy"

2. Duplicate the enemies weapon model prefab and keep them seperate from the players weapons.
3. Under the BladeComponent uncheck the "enemy" layer mask.

Thanks, I think it worked!

Answered

Thanks Mathalous!