RemoveItemsFromContainerAction ​
Inherits: EventAction < Resource
Action to remove items from a container's inventory
Properties ​
int | interactable_unique_id | 0 |
int | item_id | 0 |
int | quantity | 1 |
Variables ​
InteractableObject | target_container | null |
Methods ​
String | get_function_description() |
InteractableObject | find_target_container() |
Dictionary | save() |
void | load_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