the ID of a gate/door is different when its open. also the position of it is different. so you can check on 2 things
you can check the position and ID of objects by enabling entity hovering debug
cheers
I like mines better though
You wanted it so badly, so i made it for you
http://osbot.org/forum/topic/94034-give-me-an-exploding-name/
http://osbot.org/forum/topic/95280-undercover-p-mod/#entry1057371