The lawyer for Hollywood filmmaker Peter Rodger said that the "family believes the child was the perpetrator".
Alan Shifman said the son had Asperger's syndrome, had trouble making friends and had been receiving professional help.
Mr Shifman added that the family had contacted police about "recent posts on YouTube" by Elliot "regarding suicide and the killing of people". The family is "devastated" and co-operating with police, he said.
More top news
Ofcom has been asked by cable giant Virgin Media to open a formal investigation into the way the Premier League sells its TV rights
The whole tooth: Five fascinating dental facts
Newcastle boss Alan Pardew's job is under no immediate threat despite a winless start to the Premier League season.