Marijuana (as mentioned earlier) has caused some pretty significant moments of incontinence for me personally. Now that I'm on my other meds I shouldn't be using any kinda psychtropic drug anyways, but when it's happened I never feel the urge to go until it's already happened.
I also used to be on a form of Ambien and instead of getting any good sleep I'd more often than not wake up with a wet bed (plus sleepwalking and then some more extreme stuff. Luckily the bedwetting stayed on the bed for the most part--I did have one time where I woke up and was already attempting to wash my wet bedsheets, but I had been asleep the entire moment until I actually woke up. As nice as it would be to do laundry in my sleep, that counts as operating machinery and meant I was instantly taken off after that, definitely for the better).
I also used to be on Zoloft and that always upset my body a lil too much if I missed a dose.