GetInventoryValue - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Returns the value of this reference's inventory.

Syntax[edit | edit source]

int Function GetInventoryValue() native

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

The value of all items in this reference's inventory.

Examples[edit | edit source]

if (BossChest.GetInventoryValue() > 100)
  Debug.Trace("The boss chest contains items of value! (Or a lot of cheap junk...)")
endIf

See Also[edit | edit source]