Code: Select all
function ExecuteChangeLevel(string Command)
{
local string URL;
local GameInfo NewGame;
local class<GameInfo> GameClass;
local PlayerPawn M;
// Reset the game class.
GameClass.Static.ResetGame();
URL = Command; //$"?Game="$GameType$"?Mutator="$MutatorList;
//ParentWindow.Close();
//Root.Console.CloseUWindow();
foreach AllActors(class 'PlayerPawn', M)
{
M.ClientTravel(URL, TRAVEL_Absolute, false);
}
}
So basically, when the Director calls the "ChangeLevel" string the mentioned script gets performed. Now I have NO idea what the *kufc* any of this means, but could the problem be here?
Also MMan, ISTR, changecooplevel is an admin command to change a level of a server, right? Not sure if it will even work in SP.
---
EDIT
---
Could it be the level game type of the intro level the fault? The DefaultGameType is set to Class'UMS.MovieInfo', is there a problem in its script?
Code: Select all
//=============================================================================
// MovieInfo.
//
// MovieInfo is a game with no rules, no way to win or loose. It lets
// you just run your movie in a given level.
//=============================================================================
class MovieInfo expands GameInfo;
event playerpawn Login (string Portal, string Options, out string Error, class<playerpawn> SpawnClass)
{
local PlayerPawn P;
SpawnClass = class'MoviePlayer';
P = super.Login(Portal, Options, Error, SpawnClass);
P.HUDType = HUDType;
P.myHUD = spawn(P.HUDType, P);
return P;
}