How can I know when someone tags heli?

As per the title I'd like to know when someone tags the patrol heli, I'm looking at:

void OnPlayerAttack(BasePlayer attacker, HitInfo info) {
    Puts("OnPlayerAttack works!");
}

With a view to getting the entity name from the info - just not sure how?

Also, I don't want to bog down the sever, is this a bad way to get this info, I can imagine it'll have to handle alot of false hits before it gets a heli tag, then I assume it'll get triggered alot while heli is being shot down? Will this approach cause any issues/lag?

Thanks in advance.

Or should I use `OnEntityTakeDamage`...?

I'd use

object OnEntityTakeDamage(BaseHelicopter entity, HitInfo info)
{
	BasePlayer attacker = info.Initiator as BasePlayer;
	Puts("BaseHelicopter hit by " + attacker.displayName);
	return null;
}

Then it only gets called when the patrol heli takes damage.

Thanks, that works perfectly :)