Actually, I was wrong, GetTeamDeathCount works just fine, I'd just made a stupid mistake. That also makes the code much easier:
Code:
function Update(self)
local K2 = ActivityMan:GetActivity():GetTeamDeathCount(Activity.TEAM_2)
local K3 = ActivityMan:GetActivity():GetTeamDeathCount(Activity.TEAM_3)
local K4 = ActivityMan:GetActivity():GetTeamDeathCount(Activity.TEAM_4)
FrameMan:SetScreenText("Kills: "..(K2+K3+K4), 0, 0, -1, false)
end
That's all you need really, for a simple kill counter. You can still download the mod I posted in the minor mod release thread if you don't want to bother with attaching it to something yourself.