The huge Pelennor Fields battle scene in
Return of the King was made possible only by sophisticated computer generated warriors, which are programmed with a certain degree of autonomy to make their movements more realistic. But one big problem with the code for the first iteration of the 200,000+ warriors "agents" was that they kept wanting to
run away from the battle. (Via
Boing Boing.)