Skip to main content

Introduction

This component allows you to pickup GameObjects and add them to your inventory.

"Inventory Pickup"

Fields#

NameDescription
Pickup TypeSet the type of pickup to use
Auto Pickup TypeSet when to automatically pickup
Destroy AfterDestroy GameObject after interaciton
Destroy TargetGameObject to destory
Add FundsList of funds to add
Add ItemsList of items to add
ItemItem to add for EquipBetter mode
Allow Worse ItemAllow picking up a worse item with input hold
Worse Prompt IdId of Interactor UI to use for worse items
Better Prompt IdId of Interactor UI to use for better items
Auto Swap ModeDetermines how to swap attachments
ComparisonsList of stat comparison
InteractableDetermines if this object is interactable
Action TextText associated with this action
Action ImageImage associated with the action
Show Alt TextDisplay message when object is not interactable
Alternate TextText associated with this action when not interactable
Custom SourceSource of custom UI
Custom UIReference of Custom UI to use instead of the normal Interactor UI
Custom IdId of Custom UI to use instead of the normal Interactor UI
Audio Pool ChannelName of the broadcaster channel to use with the audio ppol
Action SoundSound to play when interacting
On InteractEvent raised when the object is interacted with

Properties#

NameDescription
CurrentAgentCurrently active Interactor
CallbacksList of callbacks to be used by the Interactor UI
InteractionImageImage to display in the UI
InteractionTextText to display in the UI
IsInteractableIs the object currently interactable
ParametersList of parameters to be used by the Interactor UI

Methods#

NameDescription
GetFirstItemGet the first item in the list
InteractInteract with the object
SetExactReferenceSet reference to an exact item with stats and plugins
SetInteractableSet the interactable state of the object