Quote:
if ???? some code when its near a wall ??

Write:
Code:
if(trace_hit)
{
  // do something
}



If your model is colliding with anything, then the stuff inside those brackets will be executed.


Eats commas for breakfast.

Play Barony: Cursed Edition!