Code:

ENTITY* BOO;

BOO->flags |= PASSABLE; // Make it passable

BOO->flags &= ~PASSABLE; // Not passable anymore



Take a look at this page