you can use the 'trace_hit' instead:
Quote:
trace_hit Nonzero if c_trace hit something, otherwise 0.
from the online manual