It works fine for me. Make sure the hitbox is visible.
It might break if you have upgraded an edge project or running it in a different version of Edge you originally built it in. The code is valid though.
jep just tried it in a new project - works fine there.