My program doesn't have bugs. It just develops random features.

Difference between revisions of "Talk:How to Make an Inventory"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Error In Code - Discuss?)
(No difference)

Revision as of 03:51, 17 May 2008

Current Issues with Tutorial

Hello. I found this tutorial helpful, but following the tutorial exactly as shown(while replacing the mesh with something like the healthpack mesh) will not compile.

Current Code:

class PickupItem_NewItem extends UTPickupInventory;
defaultproperties
{
  InventoryType=class'NewItem'
 
  Begin object Name=BaseMeshComp
  StaticMesh=StaticMesh'folder.folder.NameofMesh'
  scale=1
  Rotation=(pitch=16384, yaw=0, roll=0)
 
  End Object
}

Proposed Change:

class PickupItem_NewItem extends UTPickupFactory;
defaultproperties
{
  InventoryType=class'NewItem'
 
  Begin object Name=BaseMeshComp
  StaticMesh=StaticMesh'folder.folder.NameofMesh'
  scale=1
  Rotation=(pitch=16384, yaw=0, roll=0)
 
  End Object
}

Changing what the line is extending from makes the code compile, and show up in the browser. I will give this a few days for discussion in case I am wrong and someone would like to point this out. If no one says anything(or changes it themselves) I will do so. GearType2 10:51, 17 May 2008 (UTC)