Updated

Pauley Perrette said her "faith" helped her get through a traumatic experience.

One year after the "NCIS" actress was allegedly attacked by a homeless man who threatened to kill her outside of her home, Perrette opened up about the experience.

"There were a lot of feelings and a lot of emotions, but I feel like at the end of it all, as strange as it sounds, if that incident had to happen in the universe, I feel like it had to be me," she told People. "I feel like it was supposed to be me somehow because I have a lot of experience working with the homeless, working with the mentally ill. This instance, de-escalation that had to happen right then."

She told the magazine it was her "faith" that got her through.

"I think whatever the circumstances are, when you almost get killed, when someone almost kills you, and you’re alive, and you walk away, it really gives you a lot of perspective," she said.

A few days after the 2015 attack, Perrette told ET "I prayed as hard as I've ever prayed for anything ever in my life."