01-02-2016, 02:29 AM
(01-02-2016, 02:07 AM)NiLSPACE Wrote: Try the OnTakeDamage hook.
123456function
OnTakeDamage(a_Receiver, a_TDI)
if
(a_TDI.Attacker ==
nil
or
not
a_Receiver:IsItemFrame()
or
not
a_TDI.Attacker:IsPlayer())
then
return
false
end
-- Your code
end
You're ahead of me Thank you!