Skip to main content
Version: 5.2.0

Helper

Add Item to Slot

Add Item to Slot adds the item to specified slot.

  • Item 1 : Item to add to slot.
  • Slot 2 : Slot to which add item.

Add Item to Slot

note

This function should only be called with authority.

Remove Item from Slot

Remove Item from Slot removes an item from the specified slot.

  • Slot 1 : Slot from which to remove an item.

Remove Item from Slot

note

This function should only be called with authority.

Slot Exists

Slot Exists checks is the specified slot exists.

  • Slot 1 : Slot to check if it exists.

Slot Exists

Returns true if slot exists, otherwise false.

Is Item in Inventory

Is Item in Inventory checks if the specified item is in this inventory.

  • Item 1 : Item to check for if it is in this inventory.

Is Item in Inventory

Returns true if item is in this inventory. Otherwise, false.

Calculate Drop Transform

Calculate Drop Transform calculates a transform for where to drop the item from this inventory.

  • Item 1 : Item to drop.
  • Distance 2 : The distance from the instigator that the item will be dropped to.

Calculate Drop Transform

Returns transform for where to drop the item.

Count All Stacks

Count All Stacks counts total number of specified items in the inventory.

  • Items 1 : Items of which to count total amount of stacks for.

Count All Stacks

Returns total amount stacks for the specified items in the inventory.

Add Stacks

Add Stacks adds new stacks to this inventory of specified item class.

  • Item Class 1 : Class of the items to add.
  • Stacks 2 : Amount of items to add.

Add Stacks

note

This function should only be called with authority.

Remove Stacks

Remove Stacks remove specified number of stacked items from this inventory.

  • Items 1 : Arrays of items from which to remove.
  • Stacks 2 : Number of items to remove from stacks.

Remove Stacks

note

This function should only be called with authority.