I love the smell of UnrealEd crashing in the morning. – tarquin
UE3:InventoryManager (UDK)
From Unreal Wiki, The Unreal Engine Documentation Site
Contents |
- Package:
- Engine
- Direct subclass:
- UTInventoryManager
- This class in other games:
- UT3
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
InventoryManager Base class to manage Pawn's inventory This provides a simple interface to control and interact with the Pawn's inventory, such as weapons, items and ammunition.
[edit] Properties
[edit] bMustHoldWeapon
Type: bool
if true, don't allow player to put down weapon without switching to another one
[edit] InventoryChain
Type: Inventory
First inventory item in inventory linked list
[edit] LastAttemptedSwitchToWeapon
Type: Weapon
[edit] PendingFire
Modifiers: private
Holds the current "Fire" status for both firing modes
[edit] PendingWeapon
Type: Weapon
Player will switch to PendingWeapon, once the current weapon has been put down.
Fixme: laurent -- PendingWeapon should be made protected, because too many bugs result by setting this variable directly. It's only safe to read it, but to change it, SetCurrentWeapon() should be used.
[edit] Default values
| Property | Value |
|---|---|
| bHidden | True |
| bOnlyDirtyReplication | True |
| bOnlyRelevantToOwner | True |
| bReplicateInstigator | True |
| bReplicateMovement | False |
| CollisionType | COLLIDE_CustomDefault |
| NetPriority | 1.4 |
| RemoteRole | ROLE_SimulatedProxy |
| TickGroup | TG_DuringAsyncWork |
[edit] Functions
[edit] Iterator functions
[edit] InventoryActors
returns all Inventory Actors of class BaseClass
Parameters:
- BaseClass - Inventory actors returned are of, or childs of, this base class.
Output: Inv Inventory actors returned.
Note: this iterator bails if it encounters more than 100 items, since temporary loops in linked list may sometimes be created on network clients while link pointers are being replicated. For performance reasons you shouldn't have that many inventory items anyway.
[edit] Exec functions
[edit] DumpWeaponStats
Dump debug stats in log of all weapons in inventory.
[edit] Events
[edit] Destroyed
Overrides: Actor.Destroyed
Event called when inventory manager is destroyed, called from Pawn.Destroyed()
[edit] DiscardInventory
Discard full inventory, generally because the owner died
[edit] FindInventoryType
returns the inventory item of the requested class if it exists in this inventory manager.
Parameters:
- DesiredClass - class of inventory item we're trying to find.
- bAllowSubclass - whether subclasses of the desired class are acceptable
Returns:
- Inventory actor if found, None otherwise.
[edit] PostBeginPlay
Overrides: Actor.PostBeginPlay
