Hmm i dont have any experience in object's

so i was wondering how would you create another option on objects such as when you right click it says "examine"

how would you create another option?