(LOS ANGELES) -- The How I Met Your Mother family was in danger of losing one of its own Friday in Los Angeles.
When a gunman armed with an assault rifle entered a terminal at Los Angeles International Airport this morning, killing a TSA agent and injuring several others, HIMYM co-creator Craig Thomas was at the airport. Thomas said he feared for his life and said he was 40 feet from where the gunman's rifle ended up lying on the ground.
"I was at LAX Terminal 3 this morning, waiting to fly to New York - I had to run for my life, with many others," he tweeted this afternoon. "This was a terrifying experience I will never forget."
Thomas added his condolences to the family of the TSA agent who was killed and thanked law enforcement for acting quickly to get the situation under control.
"I feel lucky to be alive and grateful for how many amazing people are in my life," he added in the tweet. "Only just catching my breath from this --- I feel for the injured and the deceased...that could most certainly have been me instead."
Noticeably shaken up, Thomas tweeted almost 20 times, including that it's one thing to see "a story like Sandy Hook and know in your head that we have to do something about guns in our country.... It's another thing to run for your life and wonder if you'll ever see your wife and child and friends again."
Thomas added a few tweets on how he strongly believes there should be stricter gun control in America, thanked all his show's fans for their support and added a sentiment about his close friends and show co-creator.
"Got the biggest, best hug from my bro @CarterBays today when I got to the office from LAX and it made me cry like a baby," he said.
Copyright 2013 ABC News Radio