You can create a transaction with a
Lock Time (under Advanced Options), and give the raw transaction to your heir. If you don't move the coins, the transaction can be broadcasted after a certain block height has been reached.
Needless to say: download this website before using it, and check the raw transaction before giving it!
Thanks, I like this solution. However, how to make sure the mining fee will be enough at the time of broadcasting?