Author Topic: Getting attacking player on damage?  (Read 495 times)

I'm using Armor::Damage for detecting if a player is being damaged, but it appears there is no argument for the attacking player's object. Are there any better functions or a work around for this?

function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
    %attacker = %obj.sourceObject;
    %attackee = %col;
}

There should be an argument for the projectile though, which, does store a .sourceobject variable.

Wait, im silly. I could have done that with Armor::damage, as it has an arg for a projectile. Thanks a ton.