Please post me a code:)

i want to know distance to walls or models too.(i have tried to use c_trace and c_scan ,but nothing happens)