I just need some code that will go through all game surfaces and for those that have a certain material assigned to them will set them as geomode 4 and begin to cylce that mat.
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.
symbols
material changeMat
flex animRate
int numSurfs local
int i local
message startup
end
code
startup:
numSurfs = GetSurfaceCount();
for(i = 0; i < numSurfs; i = i + 1){
if(GetSurfaceMat(i) == changeMat)
SetFaceGeoMode(i,0x4);
}
MaterialAnim(changeMat, animRate, 0x1);
Return;
end