As it applies to this situation, if the person can show that he/she had no intention of buying illegal drugs, but the officer convinced him/her to do so, that would be entrapment. If the person was looking to buy or simply asked by an officer, that is not entrapment. The person would have to be able to show in court that he/she had no intention of buying illegal drugs and that he/she was induced into doing so by the officer.