If you describe someone's behaviour as opportunistic, you are critical of them because they take advantage of situations in order to gain money or power, without thinking about whether their actions are right or wrong. [disapproval]
Many of the party's members joined only for opportunistic reasons.