Posted by JM on July 16, 1998 at 00:23:43:
In Reply to: Antony, JM, help!! posted by Myrddraal on July 15, 1998 at 23:05:59:
To write in white ;) use the tags I got around that white text.
Use the pre tags!
: #JK cog script
: #
: #test.cog
: #
: #Makes a surface dissapear when activated
: #
: #DC: symbols
use flex.
flex delay=5.5
surface is NOT a valid name for a surface variable. Don't use the variable name as the vairable! It screws stuff up!
surface surf
: int diswall=0 local
: end: code
: activated:
Spaces might not be neccesary, but they make the cog neater and easier to understamd. Note: You can still pass through a surface even when its rendered, so i don't know if this is even activatable!
: if (diswall == 0)
: {
: diswall = 1;
: setfacegeomode(surf,0);
: sleep(delay);
: setfacegeomode(surf,4);
: diswall = 0;
: }
: return
: end