UnrealScript Game Programming Cookbook

(Chris Devlin) #1

Crafting Pickups


110

How it works...


This process required a few steps. First, we had to create Tut_VehicleScorpion
Content and have it extend from UTVehicle_Scorpion_Content. This allowed
us to create a copy of the scorpion content class, without worrying about our changes
affecting the original. Within this new class, we only changed the default property of
bCanPickupInventory and set it to true, so that our vehicle can now pickup items
throughout a map.


Once we've told the game's scorpion to use our new scorpion content class, we were able to
move onto the pickup, which is made in the exact same manner as we made the pickups for
our pawn. Again, an archetype was created for our pickup, so that the class can be placed in
the editor and used on the map.

Free download pdf