Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → cog needed
cog needed
2002-09-01, 3:11 PM #1
i need a cog that can move any texture any direction....all it has to do is scroll the texture....thats it....i know its possible
Quote Originally Posted by FastGamerr
"hurr hairy guy said my backhair looks dumb hurr hairy guy smash"
2002-09-01, 3:56 PM #2
Hmm.


Code:
# Simple script for surface 'movement'.
#
# 09/2002 GBK
Symbols
Message Startup
Surface Mover
Vector Dir=(0/0/1)   #Default is up.
Flex Speed=1
End
Code
Startup:
Sleep(0.5);
Slidewall(Mover, Dir, Speed);
Stop;
End



Just for the hell of it, here is a much better cog . . . it can handle movement of every surface in a level with a particular material.


Code:
# Simple script to slide all surfaces in a lev of a specific material is a direction.  (Archi only)
#
# 08/2002 GBK
Symbols
Message Startup
Material Type
Vector Dir=(0/0/1)   #Default is up.
Flex Speed=1
Int I=0			Local
End
Code
Startup:
Sleep(Getselfcog()/10);
For(I=0;I<=Getsurfacecount();I=I+1) 
If(Getsurfacemat(I) == Type) Slidewall(I, Dir, Speed);
Stop;
End


Enjoy...

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!