Massassi Forums Logo

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.

ForumsCog Forum → Opening cutscenes cog check!!!
Opening cutscenes cog check!!!
2001-02-18, 7:46 PM #1
I need two actors to use a certain keyframe, and a camera that is around them...
How do I make the second actor?
And why doesnt the character come out of the keyframe with the StopKey()?
Heres my latest cog


# Jedi Knight Cog Script
#
# S1L3_OpenCutscene.cog
#
# [KS]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved


symbols


message startup
keyframe crouch=kyusef0.key
sound goalsnd=kk60058.wav
int keynum local
thing player local
thing CameraThing
thing kyle local

template gunless=KyleBryarActor local


end

code
startup:
// setup first

player = GetLocalPlayerThing();

jkBeginCutscene();

// switch the player for an Actor

SetActorFlags(player, 0xa00000);

StopThing(player);

Kyle = CreateThing(gunless, player);

StopThing(Kyle);

SetThingCurGeoMode(player, 0);
keynum=PlayKey(Kyle, crouch, 1, 0x4);


SetCameraFocus(0, CameraThing);


MoveToFrame(CameraThing, 1, speed);

MoveToFrame(CameraThing, 2, speed);

MoveToFrame(CameraThing, 3, speed);

MoveToFrame(CameraThing, 4, speed);

MoveToFrame(CameraThing, 5, speed);

MoveToFrame(CameraThing, 6, speed);

MoveToFrame(CameraThing, 7, speed);
Sleep(11.0);
MoveToFrame(Camerathing, 3, speed);
PlaySoundLocal(goalsnd, 1, 0, 0);
Print("Uh-oh, grab your blasters!!!");
Sleep(1.5);

// switch back to player focus
StopKey(Kyle, keynum, 0);
SetCameraFocus(0, jkGetLocalPlayer());


// unfreeze Kyle

ClearActorFlags(Player, 0xa00000);
jkEndCutscene();
return;

end

I think im duplicating for both the jan and kyle actors, but Im new, and just posted sumthin basic. Get back to me pronto...
Props!~
Devobolo


[This message has been edited by DevoSolo (edited February 19, 2001).]

[This message has been edited by DevoSolo (edited February 19, 2001).]
2001-02-19, 5:37 PM #2

CHECK THE SCRIPT UP TOP!!!
It only has one actor, but i need to know how to make two, and how to keep their keyframes from sticking after the cutscene ends!

[This message has been edited by DevoSolo (edited February 19, 2001).]

[This message has been edited by DevoSolo (edited March 01, 2001).]

↑ Up to the top!