I can't recall needing to get someone's attention in a situation where I was close enough where yelling would be effective. By then it's too late. I want their attention long before then. If I don't have it by the time I'm close enough for yelling to work, I'll avoid being in a position that requires their attention.