UnrealScript Game Programming Cookbook

(Chris Devlin) #1
Chapter 2

49


  1. Go back to the content browser and left-click on the newly created archetype,
    then press F4 to bring up its properties. We're going to keep things simple and only
    change one property here, and that is which weapon this pickup factory spawns.

  2. Under UTWeapon Pickup Factory | Weapon Pickup Class, scroll down to UTWeap_
    Shockrifle and left-click the weapon to select it. This pickup factory will now spawn
    the shock rifle.

  3. To test it out, drag-and-drop your archetype into the map and press the PIE button
    to play. When you run towards the pickup now, you'll see that it has a shock rifle
    floating above it. Run over it to pick it up.

Free download pdf