ScriptBind_Inventory

Destroy

Destroys the inventory.

Inventory.Destroy()

Clear

Clears the inventory.

Inventory.Clear()

Dump

Dumps the inventory.

Inventory.Dump()

GetItemByClass

Gets item by class name.

Inventory.GetItemByClass( className )
ParameterDescription
classNameClass name.

GetGrenadeWeaponByClass

Gets grenade weapon by class name.

Inventory.GetGrenadeWeaponByClass( className )
ParameterDescription
classNameClass name.

HasAccessory

Checks if the inventory contains the specified accessory.

Inventory.HasAccessory( accessoryName )
ParameterDescription
accessoryNameAccessory name.

GetCurrentItemId

Gets the identifier of the current item.

Inventory.GetCurrentItemId()

GetCurrentItem

Gets the current item.

Inventory.GetCurrentItem()

GetAmmoCount

Gets the amount of the specified ammunition name.

Inventory.GetAmmoCount(ammoName)
ParameterDescription
ammoNameAmmunition name.

GetAmmoCapacity

Gets the capacity for the specified ammunition.

Inventory.GetAmmoCapacity( ammoName )
ParameterDescription
ammoNameAmmunition name.

SetAmmoCount

Sets the amount of the specified ammunition.

Inventory.SetAmmoCount( ammoName, count )
ParameterDescription
ammoNameAmmunition name.
countAmmunition amount.