Help - Branch bends when walked on

Hello! I’m trying to make a tree branch bend down when it’s walked on, and return to its original position when you jump off. Unfortunately, I’m stuck at the triggering. I can make a bunch of collisions close to the branch to determine when the player is walking on it, but I’d rather have a more dynamic approach where the tree bends anytime you walk on it, and bends more the further out you walk.

Is there an event that fires when a player character is based on an object, and another event that fires when the player is no longer based (jumps off or falls off)?