Stupid jIRC.
[This message has been edited by Lord_Grismath (edited February 09, 2003).]
[This message has been edited by Lord_Grismath (edited February 09, 2003).]
Code:
buttmat.cog # Ahhh... a mat for your butt. # ** REMEMBER: mat0 should be set to the mat that the changer # surface is already set to. # 2.9.2002 # [Grismath] #=============================================================# symbols message activated surface switch surface changer material mat0 material mat1 material mat2 material mat3 int status=1 local end #=============================================================# code #------------------------------- acitvated: if(GetSenderRef()==switch) { for(X = 0; X < 4; X = X + 1) { SetSurfaceMat(changer, mat0[status]); if(status < 3) { status=status+1; } else { status=0; } } } return; #------------------------------- end
[This message has been edited by Lord_Grismath (edited February 09, 2003).]
[This message has been edited by Lord_Grismath (edited February 09, 2003).]