emtp wroteYou would need to know how the player comes to be OOB unless it was the thrower, did player get pushed or blocked OOB
Or momentum from a legitimate play (saving the ball, shooting a layup, etc.). If the player was pushed or blocked OOB, you could also have a foul.