First , make shure the wall isnt set to passable. Then check if you're moving the entity with a skill and use ent_move or c_move , dont use something like my.x += ...

and finaly , make shure your camera is attached to an entity. If its not its like a fly-thru mode.
PS.: If you dont know how to use c_move or ent_move , check in the manual.