I am making a sweet level with script to cause players to spawn without the enforcer. I write the script which i found at unrealized. I compliled it, saved it, and put it into levelinfo as gametype. Now, when i run it i get the following:
Critical Error
Failed to enter Autoplay.unr: Can't find file for package 'NoEnforcer'
History: UGameEngine::Init <- InitEngine
the script looks like this:
class NoWeapon expands TournamentGameInfo(or whatever this header is - i can't remember but it is right in the script);
function AddDefaultInventory(pawn PlayerPawn)
{
return;
}
function bool PickupQuery(Pawn Other, Inventory item)
{
if ( item.IsA('enforcer') )
DefaultWeapon = class'enforcer';
return Super.PickupQuery(Other, item);
}
I can't for the life of me figure out what is wrong. Please help. The level will be good, and then I can also put this script up somewhere for other people's use. Thanks.
Critical Error
Failed to enter Autoplay.unr: Can't find file for package 'NoEnforcer'
History: UGameEngine::Init <- InitEngine
the script looks like this:
class NoWeapon expands TournamentGameInfo(or whatever this header is - i can't remember but it is right in the script);
function AddDefaultInventory(pawn PlayerPawn)
{
return;
}
function bool PickupQuery(Pawn Other, Inventory item)
{
if ( item.IsA('enforcer') )
DefaultWeapon = class'enforcer';
return Super.PickupQuery(Other, item);
}
I can't for the life of me figure out what is wrong. Please help. The level will be good, and then I can also put this script up somewhere for other people's use. Thanks.