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
Government minister Justine Greening has apparently opened up about her sexuality, as thousands took part in the London Pride parade.
Record crowds are at this year's Pride in London parade as people show their support for the LGBT community after the Orlando shooting
After a showery start to the day, parts of Northern Ireland, western Scotland and south-west England will see drier conditions.