ok, if you read this pleas also fix my erlyer cutseen cog, its still not working.
problem. day never comes! (or night or dusk or dawn, heck it wont evan add the light.) i need it fast. my projects are both behind sedule. and it sux.
------------------
I am pjb.
Another post......
another moment of my life wasted.....
[This message has been edited by [SF]pjb (edited May 04, 2003).]
problem. day never comes! (or night or dusk or dawn, heck it wont evan add the light.) i need it fast. my projects are both behind sedule. and it sux.
Code:
# Jedi Knight Cog Script # # default.cog # # Description # # # This Cog is Not supported by LucasArts Entertainment Co symbols message startup flex daynight=32400 flex dawndusktime=5400 flex addlight=0.5 sector I local surface X local material mat local material day=day.mat material dusk=dusk.mat material dawn=dawn.mat material night=night.mat material cloud=clouds.mat int daya=0 local end # ======================================================================================== code boo: sleep(daynight+dawndusktime); call calulate; return; startup: sleep(daynight); call calulate; return; calulate: For(I=0;I<=GetSectorCount();I=I+1) if(daya==1) { If(Getsectorflags(I) & 100)SetSectorLight(I, addlight, dawndusktime); } if(daya==0) { If(Getsectorflags(I) & 100)SetSectorLight(I, 0-addlight, dawndusktime); } For(X=0;X<=GetSurfaceCount();X=X+1) If(Getsurfaceflags(X) & 204) { mat=GetSurfaceMat(X); if (mat==day) { SetSurfaceMat(X, dusk); return; } if(mat==dusk) { SetSurfaceMat(X, night); return; } if(mat==night) { SetSurfaceMat(X, dawn); return; } if(mat==dawn) { SetSurfaceMat(X, day); return; } } call boo; return; # ........................................................................................ end
------------------
I am pjb.
Another post......
another moment of my life wasted.....
[This message has been edited by [SF]pjb (edited May 04, 2003).]
I am Darth PJB!
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?