How do you create a door?

I want to create a door in a house that only certain objects can open. How do I do that.

  • create your door object
    (consideradding the animation, or you
    will have to code the door
    translation later)
  • add a script to the door that
  • open a door when some variable is
    true
  • tag the objects that can open the
    door with a common tag
  • when the objects with that tag hit
    the door,open the door (set the
    variable to true)

Remark:
you’re question isn’t specific and can be solved with more than once approach, please try to solve it by your own and when you are stacked with something specific, post here, otherwise you can always check the forums.