changing the value of variable

Hello,
Use the “other actor” output to link to the “cast to” to check if this is the right one. Then drag and set your variable (1 on begin overlap and 0 on end overlap)