If you have ever played Guts and Blackpowder, you know that GnB zombies can grab you. I was wondering how to make a similar system to that. If you have any ideas as to the groundwork that would go into making this (not the code), please reply in the reply section.
Grabbing is basically just an alternative attack for zombies. If you have an attack working already, then grabbing will just be a modification of it. Change your attack function to give the zombie a random chance to do a grab attack instead of a normal one.
Monitor the state of both parties (zombie and player). If the zombie or player is pushed out of the grab state (e.g. but not limited to, from death), then end the grab state and return the living party to their default state.