Destroy
Destroys the inventory.
Syntax
Inventory.Destroy()
Clear
Clears the inventory.
Syntax
Inventory.Clear()
Dump
Dumps the inventory.
Syntax
Inventory.Dump()
GetItemByClass
Gets item by class name.
Syntax
Inventory.GetItemByClass( className )
Parameter | Description |
---|---|
className | Class name. |
GetGrenadeWeaponByClass
Gets grenade weapon by class name.
Syntax
Inventory.GetGrenadeWeaponByClass( className )
Parameter | Description |
---|---|
className | Class name. |
HasAccessory
Checks if the inventory contains the specified accessory.
Syntax
Inventory.HasAccessory( accessoryName )
Parameter | Description |
---|---|
accessoryName | Accessory name. |
GetCurrentItemId
Gets the identifier of the current item.
Syntax
Inventory.GetCurrentItemId()
GetCurrentItem
Gets the current item.
Syntax
Inventory.GetCurrentItem()
GetAmmoCount
Gets the amount of the specified ammunition name.
Syntax
Inventory.GetAmmoCount(ammoName)
Parameter | Description |
---|---|
ammoName | Ammunition name. |
GetAmmoCapacity
Gets the capacity for the specified ammunition.
Syntax
Inventory.GetAmmoCapacity( ammoName )
Parameter | Description |
---|---|
ammoName | Ammunition name. |
SetAmmoCount
Sets the amount of the specified ammunition.
Syntax
Inventory.SetAmmoCount( ammoName, count )
Parameter | Description |
---|---|
ammoName | Ammunition name. |
count | Ammunition amount. |
Overview
Content Tools