You can trigger a “Set Movement Mode” node and change the movement mode to flying after the “Event Actor Begin Overlap” detects a collision. To make sure that the player is the one being collided with, you can use the “== (object)” node to check if the other actor is indeed the player and plug it into a branch node between the Begin Overlap and Set Movement Mode nodes. To end the flying mode, you can use the “Event Actor End Overlap” node the same way, just select the movement mode to walking this time.
1 Like