That's not the part that I wanted to know, it's how I make that only happen when he's facing one direction. Also, that's not a problem anymore, there are ledges that come with the Pokemon Essentials that don't need any events to work.