Example script:
IF
<Your Private key's Public key pair> CHECKSIGVERIFY
ELSE
<Your Preferred inheritance date> CHECKLOCKTIMEVERIFY DROP
ENDIF
<Inheritor's Public key> CHECKSIG
In this script the inheritor is
always one of the signers when you want to spend those coins meaning the original owner will not be able to move their coin without the second signer.
If that's the intention it can be simplified like this using multisig (same sigop count)
IF
2
ELSE
<Your Preferred inheritance date> CHECKLOCKTIMEVERIFY DROP
1
ENDIF
<Your Private key's Public key pair>
<Inheritor's Public key>
2
CHECMULTIKSIG
Or can be fixed by pulling the inheritor's pubkey into the else branch.
IF
<Your Private key's Public key pair>
ELSE
<Your Preferred inheritance date> CHECKLOCKTIMEVERIFY DROP
<Inheritor's Public key>
ENDIF
CHECKSIG