control light intensity with slider

Hi, I copy my functions to a BP actor class, may I know how can make it work, please?