From the manual: Don`t use c_content for newer projects...
this
And even if you would use c_content think it wouldn't really serve its purpose; there still might be entites a bit further from the c_content positon. You should rather make a function that scans a position for a defined radious. THOUGH I can't remember if c_scan detects walls...