Open the BP_PlantComponent then create a new Float variable called RainInsideTraceLength and tick on Instance Editable, then compile and set its Default Value to 20

Then open the RainInsideTrace function and add the nodes shown in the image below.