I needed to get setVariable work on buildings because we wana create a housing system on altis and for this i need to set a variable to lock the doors, and some other informations.
The problem i got is (as told in wiki: "According to Suma, beginning with ArmA version 1.08, "setVariable now should work on any entity which can be targeted by AI, including soldier and game logic units. This includes most buildings, but not other static objects. Using it with buildings one should be aware the building may be discarded because of streaming. In such case the variable space is lost. When used for buildings, the storage should therefore be considered non-reliable.") that some client won't receive the variable and can open doors at any time.
Becuase when we place weaponholder in the building it will be access able for some people :(