Hi Everyone, i am just starting Uscript, and i am stuck straight away, I am trying to make the mod for spawning bots that i found in a tutorial, but i keep getting this error...
Critical: Superclass DeathMatch of class myGameType not found
I have installed the scripts, and the DeathMatch.uc is definitly there, but when i try to compile i get this error I am sure there is somthing very simple i am missing, can someone point it out to me? ...the code is below... (this is UT2004)
class myGameType extends DeathMatch;
function Bot SpawnBot(optional string botName)
{
local Bot NewBot;
local RosterEntry Chosen;
local UnrealTeamInfo BotTeam;
BotTeam = GetBotTeam();
Chosen = BotTeam.ChooseBotClass(botName);
//set the pawn class name and pawnclass to our own pawn class
Chosen.PawnClassName = "MutSpawningBot.NewPawn";
Chosen.PawnClass = class'MutSpawningBot.NewPawn';
//comment out these because the because we just set the pawnclass
/* if (Chosen.PawnClass == None)
Chosen.Init(); //amb
// log("Chose pawn class "$Chosen.PawnClass);
*/
NewBot = Bot(Spawn(Chosen.PawnClass.default.ControllerClass));
if ( NewBot != None )
InitializeBot(NewBot,BotTeam,Chosen);
return NewBot;
}
defaultproperties
{
MapPrefix="DM"
Acronym="DM"
GameName="myGameType"
Description="myGameType"
}
Critical: Superclass DeathMatch of class myGameType not found
I have installed the scripts, and the DeathMatch.uc is definitly there, but when i try to compile i get this error I am sure there is somthing very simple i am missing, can someone point it out to me? ...the code is below... (this is UT2004)
class myGameType extends DeathMatch;
function Bot SpawnBot(optional string botName)
{
local Bot NewBot;
local RosterEntry Chosen;
local UnrealTeamInfo BotTeam;
BotTeam = GetBotTeam();
Chosen = BotTeam.ChooseBotClass(botName);
//set the pawn class name and pawnclass to our own pawn class
Chosen.PawnClassName = "MutSpawningBot.NewPawn";
Chosen.PawnClass = class'MutSpawningBot.NewPawn';
//comment out these because the because we just set the pawnclass
/* if (Chosen.PawnClass == None)
Chosen.Init(); //amb
// log("Chose pawn class "$Chosen.PawnClass);
*/
NewBot = Bot(Spawn(Chosen.PawnClass.default.ControllerClass));
if ( NewBot != None )
InitializeBot(NewBot,BotTeam,Chosen);
return NewBot;
}
defaultproperties
{
MapPrefix="DM"
Acronym="DM"
GameName="myGameType"
Description="myGameType"
}