Skip to content

RemoveItemsFromContainerAction ​

Inherits: EventAction < Resource

Action to remove items from a container's inventory

Properties ​

intinteractable_unique_id0
intitem_id0
intquantity1

Variables ​

InteractableObjecttarget_containernull

Methods ​

Stringget_function_description()
InteractableObjectfind_target_container()
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

int interactable_unique_id = 0 ​

ID of the container to remove items from

int item_id = 0 ​

Item ID to remove

int quantity = 1 ​

Quantity to remove (-1 for all)

Variable descriptions ​

InteractableObject target_container = null ​

Reference to the target container

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

InteractableObject find_target_container() ​

Find the target container by ID

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary