O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring the engine and editor for a custom camera

All of our recipes will require a new custom GametTypegametype class to tell UDK to use our new Pawn and PlayerController classes.

Getting ready

We'll be using the same game type and player controller for all of these cameras, so we'll begin this chapter's recipes by explaining them here. Begin this lesson by extending our game from UTGame:

class TutorialGame extends UTGame;

defaultproperties
{
  PlayerControllerClass=class'Tutorial.TutorialPlayerController'
  DefaultPawnClass=class'Tutorial.TutorialPawn'
  DefaultInventory(0)=class'UTWeap_ShockRifle'
}

We set the default properties which include our new custom TutorialPlayerController class and TutorialPawn class. I choose to use UTWeap_ShockRifle ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required