I think if the game knows the at at has to fall when a towcable is around his legs i think it can handle it
something like this (I'm not a coder
):
IF (towcable three times around legs)
THEN (let at at, at st fall)
ELSE (continue with walk)
Something like this, but I know it is not that simple