Re: COG correction?


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

Posted by Mole on October 28, 1998 at 05:06:36:

In Reply to: COG correction? posted by matthew pate on October 28, 1998 at 04:39:01:

: I am working on my level, an sp one for MotS, and this COG doesn't seem to work. Would someone mind pointing the error out? Thanks.

: Btw, the script is from Harjassk Diplomacy 2, and the speech has been censored to protect the innocent. :)

: # Shuttle Flies
: # Jedi Knight Cog Script
: #
: # bomberfly.cog
: #
: #

: symbols

: message entered

: sector startsector
: thing shuttle
: thing camera
: thing camera2
: int player local

: end
: ------------------------------------------------------------

: code

: entered:

:
: print("dfgdhdhdhdfhdfhdgh");

: sleep(2);

: SetActorFlags(jkGetLocalPlayer(), 0xa00000); //freeze Kyle
: jkBeginCutscene(); //begin the cutscene

: SetCameraFocus(0, camera);
: MoveToFrame(shuttle, 0, 50);
: sleep(7);

: SetCameraFocus(0, camera2);
: sleep(2);
: print("dfgdfgdfgdfgdfgdfgdfgdfg");
: MoveToFrame(camera2, 0, 1);
: sleep(3);
: print("dfhfghjfgsdfdgjhfhrttydty");
: MoveToFrame(camera2, 1, 1);
: sleep(3);
: print("sdgdghdrydgdfhdfh");
: sleep(5);

: jkEndLevel(1);
: return;

: # ........................................................................................

: end

:
: Thanks.


I usually use "thing player local" instead of "int player" but you don't seem to use player in the cog anyway.

I'd also be tempted to try GetLocalPlayerThing(); instead of GetLocalPlayer();

I made a cutscene once.
The level was perfect, the cog was perfect, but it did bugger all.



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 ]