EntityTakeDamage Victim vs Attacker
π« Weaponsβ’Updated 2 days agoβ’0 views
hook.add("EntityTakeDamage","x",function(Victim,Attacker,...) if Victim==owner() then ... elseif Attacker==owner() then ... end end) - compare both args to owneβ¦
How to detect who damaged whom with EntityTakeDamage
hook.add("EntityTakeDamage","x",function(Victim,Attacker,...) if Victim==owner() then ... elseif Attacker==owner() then ... end end) - compare both args to owner() for either direction.