Alloerotic or Alloerotism is a term donating feeling sexual feelings or stimulated sexual urges towards another person. It was created as the opposite to Autoerotic or desires relating to oneself.
This can be distinct from sexual attraction as sexual attraction is defined as wanting to have sex with a particular person while alloerotism is defined as feeling sexual urges towards a particular person. However, it is occasionally used synonymously with sexual attraction and is an umbrella term for any and all sexual fixations directed towards or caused by other people, whether it be sexual urges or sexual attraction.
Refrences
https://www.merriam-webster.com/medical/alloerotism
https://medical-dictionary.thefreedictionary.com/alloeroticism