Removing is not necessary, just add the following lines in the event function:
my.enable_entity = off;
my.enable_impact = off;

Thanks for the hint Quadraxas!