UnrealScript Game Programming Cookbook

(Chris Devlin) #1

AI and Navigation


126


  1. Follow the same procedure for creating an Actor Factory by right-clicking on a blank
    space on the canvas, and selecting New Action | Actor | Actor Factory.

  2. Right-click on your Actor Factory to bring the properties for the node. Under Seq Act
    Actor Factory, there is a dropdown for Factory. Left-click on the downward blue arrow
    marked Create New Object and select ActorFactoryAI from the top of the list.

  3. A new series of properties for Factory should appear. For Controller Class, select
    TutBot. For Pawn Class, we'll just use our TutorialPawn. Our Actor Factory is now
    told to spawn our newly created TutBot when we call it into action.

Free download pdf