UnrealScript Game Programming Cookbook

(Chris Devlin) #1

Scripting a Camera System


56

+EditPackages=Tutorial

DefaultGame.ini

[Engine.GameInfo]
DefaultGame=Tutorial.TutorialGame
DefaultServerGame=Tutorial.TutorialGame

With that out of the way, we can finally get to make our prototype camera system work
within the editor.


It may be necessary to delete your UDKGame.ini and UDKEngine.ini
files after modifying the default ones, as we have done here. Our game
runs off of the UDK versions; if they're still there, they'll be used without
our modifications.

How to do it...


With our game configured correctly, we need to make sure we have the correct map and game
type loaded when we start the UDK editor. We really only have to change the game type from a
menu, so that UDK knows to look for our custom game, instead of its default setting of Unreal
Tournament as explained in the following steps:



  1. Load the UDK editor and open our DefaultMap.udk.

  2. Afterwards, left-click on the View tab at the top-left corner, which will bring down
    its contents.

  3. Scroll down to World Properties, and left-click on that.

Free download pdf