I'm making this door that dissapears when you click on it. The dissapering part works and the reapering part too but when it reaperes, it is not solid like before. You can walk through it. Could someone help me with this cog.
------------------
see me at: http://www.geocities.com/star_trekguy/
Code:
#A dissapering door cog symbols surface side1 surface side2 int act=0 local int delay=3 int geo local int adjoin local int surface local int face local message activated message timer end ########################################################################## code activated: if (act == 0) { act = 1; } else { return; } geo=GetFaceGeoMode(side1); adjoin=GetAdjoinFlags(side1); surface=GetSurfaceFlags(side1); face=GetFaceType(side1); SetFaceGeoMode(side1, 0x0); SetFaceGeoMode(side2, 0x0); SetAdjoinFlags(side1, 0x7); SetAdjoinFlags(side2, 0x7); SetSurfaceFlags(side1, 0x0); SetSurfaceFlags(side2, 0x0); SetFaceType(side1, 0x0); SetFaceType(side2, 0x0); SetTimer(delay); return; timer: SetFaceGeoMode(side1, geo); SetFaceGeoMode(side2, geo); SetAdjoinFlags(side1, adjoin); SetAdjoinFlags(side2, adjoin); SetSurfaceFlags(side1, surface); SetSurfaceFlags(side2, surface); SetFaceType(side1, face); SetFaceType(side2, face); return; end
------------------
see me at: http://www.geocities.com/star_trekguy/