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
David Cameron will use a speech today to set out plans for patients to be able to access hospital services seven days a week.
The young Labour supporter seen celebrating an impromptu photo with Ed Miliband has defended her desire for an early campaign selfie.
An unsettled weekend of weather forecast as conditions turn wet and windy from the west tonight and slowly clear eastwards through tomorrow