Behavior is directly affected by what?

It is affected by the actions of other animals. Or it just could be in their nature.