maybee that can help:
Make a c_trace from your entity witch you want to test to lets say 1000 above this entity. If the return parameter is negative, so the trace hits a polygon from behind and you stay in this model.