The role and function of narcotics are for depressant and is typically used for severe pain. What these medications do is that they shut down the central nervous system which sends and perceives this sense of severe pain. Examples of narcotics include codeine and MORPHINE.