[Build: 2545] weaponDamageEvent (server side)

How to get the victim from the event weaponDamageEvent?
The hitGlobalId is the entity that hit but if it a player and the attacker’s weapon isn’t unarmed the hitGlobalId is 0