A substitute becomes a player when they legally enter the court.
If entry is illegal, the substitute becomes a player when the
ball becomes live
.
A player becomes
bench personnel
when replaced or
disqualified
.