I love the smell of UnrealEd crashing in the morning. – tarquin

Talk:How to Make an Inventory

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 04:51, 17 May 2008 by GearType2 (Talk | contribs) (Error In Code - Discuss?)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)