Collision detection not wirking

So im trying to make movable objects, and Im using a collision detection script so it doesnt freeze my game when i hit a wall, but
now the game crashes when I try to push it. Idk whats wrong.


The setup for the object
upload_2018-3-20_12-34-5.png


The error I get when i try to push the object
upload_2018-3-20_12-34-29.png
What is the second event, the one you check with the script line?
Because the event itself is the first one, ID 1, not 2....
Oh my god I'm an idiot. I copied the code from a video, and his boulder was event 2.

Thank you for pointing that out for me. A fresh pair of eyes really helps sometimes

Original thread: https://forums.rpgmakerweb.com/threads/collision-detection-not-wirking.92930/