I tried to post the cog earlier, but I got disconnected. The scene is shown from a veiw just behind Kyle's head, and he starts to run around senselessly. The cog is:
# Jedi Knight Cog Script
#
# *.COG
#
# Description
#
# [XXZ]
# This Cog is Not supported by LucasArts Entertainment Co
symbols
message entered
sector startscene
thing cam1
thing cam2
thing player local
thing kyle local
template gunless=KyleBryarActor local
end
# ========================================================================================
code
entered:
if ( GetInv(player,46) ==1)
{
}
else
{
StopThing(player);
player = GetLocalPlayerThing();
jkBeginCutscene();
SetActorFlags(player, 0xa00000);
Kyle = CreateThing(gunless, player);
StopThing(Kyle);
SetThingCurGeoMode(player, 0);
SetCameraFocus(0, cam1);
Print("*****");
Sleep(1.0);
SetCameraFocus(0, cam2);
Print("*****");
Sleep(2.0);
SetCameraFocus(0, cam1);
Print("*****);
Sleep(3.0);
SetCameraFocus(0, cam2);
Print("*****");
Sleep(1.0);
SetCameraFocus(0, cam1);
Print("*****");
SetInvAvailable(player, 46, 1.0);
ActivateBin(player, 0, 46);
Sleep(1.0);
SetCameraFocus(0, cam2);
Print("****");
Sleep(1.5);
SetCameraFocus(0, cam1);
Print("*****");
jkEndCutscene();
SetthingCurgeoMode(gunless, 0);
SetThingCurGeoMode(player, 4);
SetCameraFocus(0, jkGetLocalPlayer());
ClearActorFlags(Player, 0xa00000);
ActivateBin(player, .2, 46);
}
# ........................................................................................
end
I am trying to get it so the player enters the sector, the scene plays, and player gets the red key. What's wrong with it?