ok i have a Cutscene in my level but when the level finishes loading (the cutscene begins right after the loading)it boots me out of MOTS. the code is somewhat lengthy but here it is
#Jedi Knight Cog Script
#escape_start.cog
#By:JK2k_Avenger
#This cog is not supported by LEC
symbols
message startup
#Locals
Thing player local
#Setup
#Basic
flex Walkspeed=1
flex Runspeed=2
#The Prison Set
Thing PrisonGeneral
Thing PrisonSleepingSoldier
Thing PrisonSleepingSoldierSpawn
Thing PrisonGuard1
Thing PrisonGuard2
Thing PrisonCaptain
Thing PrisonDoor
Thing PrisonViewCam
#The Office Set
Thing Commander
Thing PrisonOfficer
#The Ops Center
Thing Officer
Thing Operator
#The Hallway/Hangar Set
Thing StrmtrprGeneral
Thing StrmtrprSoldier
Thing Strmtrpr1
Thing Strmtrpr2
Thing Strmtrpr3
Thing Strmtrpr4
Thing Strmtrpr5
Thing Strmtrpr6
Thing StrmtrprOfficer
Thing TiePilot
Thing TieInterceptor
#End of Setup
#Keyframes
Keyframe Crouch
#End of Keyframes
#Cameras
Thing PrisonCam1
Thing PrisonCam2
Thing OfficeCam
Thing OpsCam
Thing HallCam
Thing HangarCam1
Thing HangarCam2
#End of Cameras
#SFX
flex offlight=-10
flex changetime=0.1
flex newliteval=1
sector sector00
sector sector01
sector sector02
sector sector03
sector sector04
sector sector05
sector sector06
sector sector07
#End of SFX
#Speech
#all are unistrings
flex Ugh
flex Commander
flex Wherethe
flex Youdontask
flex food
flex Troopers
flex yessir
flex NowI
flex LookslikeI
flex PTEStarfield
flex SoldierUgh
flex GeGeneral
flex Relax
flex isthatfood
#Alright let's get this show on the road
end
code
#-------------------------------------------------------------------------------------------------------------------------------------
startup:
// Register COG as master COG
SetMasterCOG(GetSelfCOG());
//Lights! Camera! (pre-setup)
player = GetLocalPlayerThing();
jkBeginCutscene();
jkstringclear();
SetActorFlags(player, 0xa00000);
StopThing(player);
SetSectorLight(sector00, offlight, changetime); // set all sector lights to
SetSectorLight(sector01, offlight, changetime); // the "off" value
SetSectorLight(sector02, offlight, changetime);
SetSectorLight(sector03, offlight, changetime);
SetSectorLight(sector04, offlight, changetime);
SetSectorLight(sector05, offlight, changetime);
SetSectorLight(sector06, offlight, changetime);
SetSectorLight(sector07, offlight, changetime);
SetCameraFocus(0, PrisonCam1);
//ACTION!
//Scene 1 The Prison
Sleep(2);
jkStringConcatUNIString(Ugh);
Sleep(1);
jkStringConcatUNIString(Commander);
SetSectorLight(sector00, newliteval, changetime);
SetSectorLight(sector01, newliteval, changetime);
SetSectorLight(sector02, newliteval, changetime);
SetSectorLight(sector03, newliteval, changetime);
SetSectorLight(sector04, newliteval, changetime);
SetSectorLight(sector05, newliteval, changetime);
SetSectorLight(sector06, newliteval, changetime);
SetSectorLight(sector07, newliteval, changetime);
MoveToFrame(PrisonCam1, 1, 4); //make the camera move up as if in 1st person the character would get up from a standing pos
jkStringConcatUNIString(Wherethe);
Sleep(0.5);
jkStringConcatUNIString(Youdontask);
Sleep(3);
jkStringConcatUNIString(food);
Sleep(2);
jkStringConcatUNIString(Troopers);
Sleep(6);
jkStringConcatUNIString(yessir);
Sleep(1);
jkStringConcatUNIString(NowI);
Sleep(4);
//move the impcaptain, troopers and door
MoveToFrame(PrisonCaptain, 1, Walkspeed);
MoveToFrame(PrisonCaptain, 2, Walkspeed);
MoveToFrame(PrisonTrooper1, 1, Walkspeed);
MoveToFrame(PrisonTrooper2, 1, Walkspeed);
MoveToFrame(PrisonDoor, 2, 8);
//move the camera to the "outside" of the character
MoveToFrame(PrisonCam1, 2, 4);
//move the general to the bed with his comrade in it and make him crouch
jkStringConcatUNIString(LookslikeI);
AISetLookPos(PrisonGeneral, PrisonSleepingSoldier);
MoveToFrame(PrisonGeneral, 1, Walkspeed);
PlayKey(PrisonGeneral, Crouch, 1, 0x4);
jkStringConcatUNIString(PTEStarfield);
Sleep(2);
jkStringConcatUNIString(SoldierUgh);
Sleep(1);
jkStringConcatUNIString(GeGeneral);
Sleep(4);
jkStringConcatUNIString(Relax);
Sleep(8);
jkStringConcatUNIString(isthatfood);
Sleep(3);
//CUT! End of Scene 1
//Scene 2 The Office
//Thats a wrap!
jkEndCutscene();
jkEndLevel();
Return;
#-------------------------------------------------------------------------------------------------------------------------------------
end
------------------
Join JK2k on the zone! go to http://www.jk2k.8k.com
#Jedi Knight Cog Script
#escape_start.cog
#By:JK2k_Avenger
#This cog is not supported by LEC
symbols
message startup
#Locals
Thing player local
#Setup
#Basic
flex Walkspeed=1
flex Runspeed=2
#The Prison Set
Thing PrisonGeneral
Thing PrisonSleepingSoldier
Thing PrisonSleepingSoldierSpawn
Thing PrisonGuard1
Thing PrisonGuard2
Thing PrisonCaptain
Thing PrisonDoor
Thing PrisonViewCam
#The Office Set
Thing Commander
Thing PrisonOfficer
#The Ops Center
Thing Officer
Thing Operator
#The Hallway/Hangar Set
Thing StrmtrprGeneral
Thing StrmtrprSoldier
Thing Strmtrpr1
Thing Strmtrpr2
Thing Strmtrpr3
Thing Strmtrpr4
Thing Strmtrpr5
Thing Strmtrpr6
Thing StrmtrprOfficer
Thing TiePilot
Thing TieInterceptor
#End of Setup
#Keyframes
Keyframe Crouch
#End of Keyframes
#Cameras
Thing PrisonCam1
Thing PrisonCam2
Thing OfficeCam
Thing OpsCam
Thing HallCam
Thing HangarCam1
Thing HangarCam2
#End of Cameras
#SFX
flex offlight=-10
flex changetime=0.1
flex newliteval=1
sector sector00
sector sector01
sector sector02
sector sector03
sector sector04
sector sector05
sector sector06
sector sector07
#End of SFX
#Speech
#all are unistrings
flex Ugh
flex Commander
flex Wherethe
flex Youdontask
flex food
flex Troopers
flex yessir
flex NowI
flex LookslikeI
flex PTEStarfield
flex SoldierUgh
flex GeGeneral
flex Relax
flex isthatfood
#Alright let's get this show on the road
end
code
#-------------------------------------------------------------------------------------------------------------------------------------
startup:
// Register COG as master COG
SetMasterCOG(GetSelfCOG());
//Lights! Camera! (pre-setup)
player = GetLocalPlayerThing();
jkBeginCutscene();
jkstringclear();
SetActorFlags(player, 0xa00000);
StopThing(player);
SetSectorLight(sector00, offlight, changetime); // set all sector lights to
SetSectorLight(sector01, offlight, changetime); // the "off" value
SetSectorLight(sector02, offlight, changetime);
SetSectorLight(sector03, offlight, changetime);
SetSectorLight(sector04, offlight, changetime);
SetSectorLight(sector05, offlight, changetime);
SetSectorLight(sector06, offlight, changetime);
SetSectorLight(sector07, offlight, changetime);
SetCameraFocus(0, PrisonCam1);
//ACTION!
//Scene 1 The Prison
Sleep(2);
jkStringConcatUNIString(Ugh);
Sleep(1);
jkStringConcatUNIString(Commander);
SetSectorLight(sector00, newliteval, changetime);
SetSectorLight(sector01, newliteval, changetime);
SetSectorLight(sector02, newliteval, changetime);
SetSectorLight(sector03, newliteval, changetime);
SetSectorLight(sector04, newliteval, changetime);
SetSectorLight(sector05, newliteval, changetime);
SetSectorLight(sector06, newliteval, changetime);
SetSectorLight(sector07, newliteval, changetime);
MoveToFrame(PrisonCam1, 1, 4); //make the camera move up as if in 1st person the character would get up from a standing pos
jkStringConcatUNIString(Wherethe);
Sleep(0.5);
jkStringConcatUNIString(Youdontask);
Sleep(3);
jkStringConcatUNIString(food);
Sleep(2);
jkStringConcatUNIString(Troopers);
Sleep(6);
jkStringConcatUNIString(yessir);
Sleep(1);
jkStringConcatUNIString(NowI);
Sleep(4);
//move the impcaptain, troopers and door
MoveToFrame(PrisonCaptain, 1, Walkspeed);
MoveToFrame(PrisonCaptain, 2, Walkspeed);
MoveToFrame(PrisonTrooper1, 1, Walkspeed);
MoveToFrame(PrisonTrooper2, 1, Walkspeed);
MoveToFrame(PrisonDoor, 2, 8);
//move the camera to the "outside" of the character
MoveToFrame(PrisonCam1, 2, 4);
//move the general to the bed with his comrade in it and make him crouch
jkStringConcatUNIString(LookslikeI);
AISetLookPos(PrisonGeneral, PrisonSleepingSoldier);
MoveToFrame(PrisonGeneral, 1, Walkspeed);
PlayKey(PrisonGeneral, Crouch, 1, 0x4);
jkStringConcatUNIString(PTEStarfield);
Sleep(2);
jkStringConcatUNIString(SoldierUgh);
Sleep(1);
jkStringConcatUNIString(GeGeneral);
Sleep(4);
jkStringConcatUNIString(Relax);
Sleep(8);
jkStringConcatUNIString(isthatfood);
Sleep(3);
//CUT! End of Scene 1
//Scene 2 The Office
//Thats a wrap!
jkEndCutscene();
jkEndLevel();
Return;
#-------------------------------------------------------------------------------------------------------------------------------------
end
------------------
Join JK2k on the zone! go to http://www.jk2k.8k.com
Join JK2k on the zone! go to http://www.jk2k.8k.com