well if its a trigger block
Click Add and in Target name put the name of the func_regenerate , My output name OnStartTouchAll, and in Input set enable (if you set Func_regenerate disable Yes)
Nextl
Click Add and in Target name put the name of the func_regenerate, My output name OnEndTouchAll, and in Input set Disable
now the func_regenertae has to be in the trigger box to see if it works or have another person but the func_generate has to be outside the trigger. If its a button then change output name to the respected term for the trigger system you use