Re: COG


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by JM on July 22, 1998 at 21:10:10:

In Reply to: COG 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 Company

: symbols

: 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?).

First, its slide ceiling sky, I beleive. herizon only scrolls those with the herizon flag. And, no, its not. repeat the slide line down there with just 0 and 0 stuck in.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]