How can I make spawned animal "friendly"? [Modding]

Hello, guys.

I trying to spawn animal which won't attack players. How can I do that from code? Which variable or method I should to use?

object OnNpcTarget(BaseAnimalNPC npc, BasePlayer entity)
{
    return false;
}

Thanks! That's it.