Skip to content

Inventory

Class in Engine · Engine.Inventory · abstract, native

Object › Actor › Inventory

Subclasses: Weapon

Using it from Lua
h7.find_all("Inventory")            -- live instances
h7.find_class("Engine.Inventory")   -- the class
h7.hook("Engine.Inventory.AnnouncePickup", fn)

Properties

NameTypeNotes
bDelayedSpawnbool
bDropOnDeathbool
bPredictRespawnsbool
DroppedPickupClassclass<DroppedPickup>
DroppedPickupMeshPrimitiveComponent
DroppedPickupParticlesParticleSystemComponent
InventoryInventory
InvManagerInventoryManager
ItemNamestringlocalized
MaxDesireabilityfloat
PickupFactoryMeshPrimitiveComponent
PickupForcestring
PickupMessagestringlocalized
PickupSoundSoundCue
RespawnTimefloat

Functions

NameDeclaration
AnnouncePickupfunction AnnouncePickup(Pawn Other)
BotDesireabilitystatic function float BotDesireability(Actor PickupHolder, Pawn P, Controller C)
ClientGivenToreliable client function ClientGivenTo(Pawn NewOwner, bool bDoNotActivate)
DenyPickupQueryfunction bool DenyPickupQuery(class<Inventory> ItemClass, Actor Pickup)
Destroyedevent Destroyed()
DetourWeightstatic function float DetourWeight(Pawn Other, float PathWeight)
DropFromfunction DropFrom(vector StartLocation, vector StartVelocity)
GetHumanReadableNamesimulated function String GetHumanReadableName()
GetLocalStringstatic function string GetLocalString(optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2)
GivenTofunction GivenTo(Pawn thisPawn, optional bool bDoNotActivate)
GiveTofinal function GiveTo(Pawn Other)
ItemRemovedFromInvManagerfunction ItemRemovedFromInvManager()

Default values

bOnlyDirtyReplication=true
bOnlyRelevantToOwner=true
NetPriority=1.4
bHidden=true
Physics=PHYS_None
bReplicateMovement=false
RemoteRole=ROLE_SimulatedProxy
DroppedPickupClass=class'DroppedPickup'
MaxDesireability=0.1000

Inherited

FromMembers
Actor156 properties, 262 functions
Object13 properties, 308 functions