void main() { object field = GetObjectByTag( "MN_LW_001" ); int fieldOpen = GetLocalInt( field, "open" ); SetLocalInt( field, "open", !fieldOpen ); }