This code will be called every time a player hits an entity if you use `"player.interact"` event.