Scrambling or scrambling code is used to distinguish different transmitters
In WCDMA
For downlink, scrambling code is used to separate different cells in one carrier
For uplink, scrambling code is used to separate different UEs in one carrier
In LTE we use PCI which is a set of 504 IDs (derived from 3 primary synch sequences and 168 secondary sequences) used to scramble certain downlink transmissions so the UE can distinguish signals from different cells.