The Danish/ Swedish famine study that first proved epigenetics was real showed that starvation during puberty affected the height of granchildren by switching off genes that were still present. The third generation is unaffected precisely because it is not genetic change.
Enviroment only affects genes by reproduction, successful genes are inhereted or not - there is no change in genes during a lifetime - that would be Lamarkism and he was wrong.
Lifestyle affects methlyation markers,which are added and change gene expression for a few generations.
The underlying genes are not changed and are still inhereted, once the methlyation 'wears off' everything will be as before.