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!