How to get attacked user/mob
#1
Hi,

Can't find in the API how to register the user or mob that is attacked by a cPlayer. Do I miss anything or is it impossible to log?

Code:
function OnTakeDamage(Receiver, TDI)
    
    if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cPlayer")) then
        TDI.FinalDamage = 999;
        LOG("Player attacked a")
        LOG(Receiver);
    end

end
Reply
Thanks given by:


Messages In This Thread
How to get attacked user/mob - by Nathanchunkie - 12-21-2014, 01:22 PM
RE: How to get attacked user/mob - by tonibm19 - 12-21-2014, 06:54 PM
RE: How to get attacked user/mob - by xoft - 12-22-2014, 12:29 AM



Users browsing this thread: 1 Guest(s)