Вот из рабочего кода:
If ZomMowe=True
If PersAlive=True Then
If EntityInView(h\ZombySphere,a.MatchMan\cam);=True
If EntityVisible ( h\ZombySphere,a.MatchMan\PiwotPers )
If EntityDistance (a.MatchMan\PiwotPers,h\ZombySphere)< 7 Then
PointEntity h\ZombySphere,a.MatchMan\PiwotPers
RotateEntity h\ZombySphere, 0,EntityYaw ( h\ZombySphere ),0
MoveEntity h\ZombySphere,0,0,L#*dt
If AnimSeq( h\ZombyMesh ) <> walk_zomby Then Animate h\ZombyMesh,2,.03*dt,walk_zomby
End If
End If
End If
End If
End If