changing the value of variable

You have to set begin overlap event and end overlap in the other actor or if you do the begin / end overlap in your character, cast to the other blueprint (but then you have your variable in your character, not from the cast to )