Assembly Constraints

Hi - How do you constrain a sliding core to an inclined pin - to move the slider when the tool opens

Picture please.
Cheers - Paul