Add "on entity targets entity" world script event. Example: "on creeper targets player"