12-21-2014, 01:22 PM 
		
	
	
		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?
	
	
	
	
	
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
 

 


