Author Topic: Getting a Name from damage  (Read 527 times)

How do I get the names of the person who was damaged, and caused the damage with function Armor::damage(%this, %obj, %sourceObject, %position, %damage, %damageType)?

I think
Code: [Select]
%obj.sourceObject.client.Name for the damaging player
and
Code: [Select]
%this.client.Name for the player who was damaged

I think
Code: [Select]
%obj.sourceObject.client.Name for the damaging player
and
Code: [Select]
%this.client.Name for the player who was damaged

Figured it out, it was %sourceObject.client.name, and %obj.client.name.. Without what you said, I wouldn't have guess that.