πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2022-09-16. It may be informal or outdated β€” anyone can edit this page to improve it. Original discussion

EntityTakeDamage Victim vs Attacker

πŸ”« WeaponsUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.