I was wondering how you would check during a hittest to see if what your hitting has a certain variable atatched to it.

Say, occasionally when I hit the mc "bob" he's happy, so bob.happy = true. but some time he's not, so bob.happy = false

How would I check for this during a hittest?

Am I being clear enough?