It was based (I suspect extremely loosely) on a real event...so the idea for the plot was kinda written by history. http://en.wikipedia.org/wiki/Battle_of_Los_Angeles