| Home Page | Recent Changes

Changing Bots Pawn Class

Changing the Pawn Class for Your Bot

If your mod just makes changes to the player pawn that don't require any difference in AI from what ships with UT2004, then you can simply override the SpawnBot function in your GameInfo subclass like so:

function Bot SpawnBot(optional string botName)
{
    local Bot B;

    B = Super.SpawnBot();

    if(B != None)
        B.PawnClass = class'YourModsPawnClass';

    return B;
}

Related Topics

Discussion

dataangel: This should eventually be integrated into a tutorial on a simple new gametype.


The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In