CyberTrashCan
┗> Event > Object > Class
Methods
CyberTrashCan:onAdd(parent: any)
Handles making the trashcan remain appearing open when re-entering the room
Arguments:
parent: any |
CyberTrashCan:onInteract(player: any, dir: any)
Handles opening the trashcan and giving the player their items
Arguments:
player: any | |
dir: any |
Returns:
1: boolean |
Fields
CyberTrashCan.item: string
[Property item
] The name of the item contianed in this treasure chest - cannot be used in conjunction with money
CyberTrashCan.money: number
[Property money
] The amount of money contained in this treasure chest - cannot be used in conjunction with item
CyberTrashCan.set_flag: string
[Property setflag
] An optional flag to set when the treasure chest is opened
CyberTrashCan.set_value: any
[Property setvalue
] The value to set on the flag specified by setflag
(Defaults to true
)