Game Development Reference
In-Depth Information
/** Vehicle's skeletal mesh. What you actually see in the
game and editor */
Begin Object Name=SVehicleMesh
End Object
/** Removes the sprite from the in game editor. We see
the actual skeletal mesh instead of a sprite */
Begin Object Name=CollisionCylinder
End Object
/** Path to our custom made scorpion content, which can
now pickup items */
/** Default scale for the object to appear in game */
This is almost identical to the scorpion used in UDK. The only changes I've made were
the comments and the VehicleClassPath variable. This now leads to the custom
scorpion content that we made at the beginning of this recipe, as it allows
our scorpion to use pickups.
Our vehicle now has the ability to gather pickups throughout a level. The problem
now however, is that UDK doesn't come with any vehicle pickups! So we must
create one ourselves.
Now that we've made several pickups in the previous recipes, this part should be
easy. We'll just be editing the functional part of the pickup, and leave the aesthetics
as they are for now. For this, create a new class called Tut_Vehicle_Health_
Pickup and have it extend from UTHealthPickupFactory as shown in the
following code:
class Tut_Vehicle_Health_Pickup extends
// Hides categories that we won't be needing from the archetype
HideCategories(Object, Debug, Advanced, Mobile, Physics);
In the default properties block, add the following code:
/** The value at which an AI bot desires the pickup. Higher
value = will lean towards this pickup */
Search Nedrilad ::

Custom Search