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).]
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).]