FutureProg functions
setliquid
setliquid overload 1
Boolean setliquid(Item item, Number liquidId)
Available in
- computer function
- computer program
- standard futureprog
Sets a liquid container's contents to a full container of the selected liquid, or empties it if the ID is invalid. Returns false if the item is null or is not a liquid container.
| Parameter | Type | Description |
|---|---|---|
item |
Item |
The liquid container item to fill or empty. |
liquidId |
Number |
The liquid ID to fill the container with. Use 0 or an invalid ID to empty the container. |