Posted by Ryan on July 22, 1998 at 18:27:13:
Here's what I have so far, but I have a question or two...
# Jedi Knight Cog Script
#
# skychange.COG
#
# Night falls as you battle through the tower...
# [RWB] 7/21/98
#
# This Cog is NOT supported by LucasArts Entertainment Companysymbols
message startup
message activated
flex u
flex v
material nightsky
surface sky0
surface switch0
end# ==================================================================================
code
startup:
SlideHorizonSky(u, v); // Initalize scrolling sky
Return;# ..................................................................................
activated:
SetWallCel(switch0, 1);
SetSurfaceMat(sky0, nightsky); // Change from sky texture to stars
u = 0; // Stop texture scroll
v = 0;
Return;end
Is it a valid function to just set u and v equal to zero later in the cog? If so, does the cog have to be "refreshed" so JK takes notice of the new values to stop the scrolling sky (if necessary, how would this be done?).