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
Anti-discrimination campaigners have offered their support to Mario Balotelli after he received a tide of racist abuse on Twitter
Nasa's Maven spacecraft enters into the orbit of Mars after a 10-month, 442 million-mile journey.
British actress Emma Watson called for more feminists in society and called upon men to promote gender equality in a speech at the weekend.