Like, if p1hits p2 whit a proyectile, then p2 will walk to p1 unable to attack, then p2 is stuning when effect finishs. Also, how to make homing attacks?
For your first part, see the HitDef sctrl; more specifically, the p2stateno parameter. You can use that for force p2 to read your character's states.To make things homing, you will want to modify the velocity of your character or projectile to move based on the relative position of your opponent.P2BodyDist may be a helpful trigger here.