How to open/close doors

First of all, the building must have doors capable of opening and shutting, as there are many enterable buildings which have static doors, such as barns, and these cannot be animated. In Operation FlashPoint, Nogova is the only default island with houses in which doors can be opened. In ArmA there are many different houses where the doors can open.

See this OFP demomission for examples of how to use this command. You can also use the animationphase command to check which state the object is in.