Code: Select all
test = OnObjectKill(
function(object, killer)
if killer and IsCharacterHuman(killer) and GetObjectTeam(object) == DEF then
print("cheeseball") --I used this to test whether the function was executing, and it was, because it printed this in the BF2log.
killcount = killcount + 1
SetClassProperty("tes_inf_test", "MaxHealth", 500)
end
end
)
