Announcement

Collapse
No announcement yet.

trouble spawning custom pawn

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    trouble spawning custom pawn

    I'm having trouble creating a custom pawn in a custom game type that is nothing like the existing game types, so I'm starting from scratch. All I'm trying to do is to spawn a character that can walk around in a simple level with a third person view. I'm brand new to UnrealScript, so I'm fairly sure I'm missing some big piece of logic in my head. Could somebody point me in the right direction? I specified the custom controller in my ini file, and I know it's working b/c the log statement is showing up. Any help?



    class BotoxDragonGameInfo extends GameInfo;

    function PostBeginPlay()
    {
    log("new PostBeginPlay");
    super.PostBeginPlay();
    }

    defaultproperties
    {
    bDelayedStart=true
    DefaultPlayerName="Willis"
    GameName="Put in the game name here"
    DefaultPlayerClassName="BotoxDragon.MousePawn"
    PlayerControllerClassName="BotoxDragon.BotoxDragon Controller"
    }

    class BotoxDragonController extends PlayerController;

    defaultproperties
    {
    PawnClass=Class'BotoxDragon.MousePawn'
    }

    class MousePawn extends Pawn;

    simulated function bool PointOfView()
    {
    Log("returning true");
    return true;
    }

    defaultproperties
    {
    }

    #2
    Try specifying:

    DefaultPlayerClassName="BotoxDragon.MousePawn"
    PlayerControllerClassName="BotoxDragon.BotoxDragon Controller"
    PlayerControllerClass=class'BotoxDragon.BotoxDrago nController'

    as well

    Comment

    Working...
    X