what is the best way to check if an entity was attacked by a player as oposed to a an AI?
If I hook into oxide with:
private void OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
{
if(info !=null &&info.Initiator is BasePlayer){
#cannot be AI
}
}
Seems above is still registering the attack if the attacker is an AI (Bear/Chicken/etc)