If looking at an object and object name is X then do Y

this tutorial should give you what you need . https://www.youtube.com/watch?v=7wPhrve_vTA