0
Answered

How to get an attacker in a melee attack?

Xzm Xzm 4 months ago in Melee updated by Marti (Lead Developer) 4 months ago 1

Invoker in a Melee clip On Hit is enemy.So, how to get an attacker?The attacker may not be the player.

Unity version:
Game Creator version:
GOOD, I'M SATISFIED
Satisfaction mark by Xzm Xzm 4 months ago
+1
Answered

You should be using the "On Receive Attack" Trigger on the attacked character to deal damage. It has access to both the attacker and the attacked character.

The weapon's On Hit should be used to instantiate particle effects, sounds, and thing like that. At least that's how we designed it.