CargoOptions
What defineCargo takes.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
container? |
CargoContainerHandle |
undefined |
The container its goods ride in on a carrier’s stack, from defineCargoContainer. Left out, its goods stack loose. |
displayName? |
string |
its name, hyphens as spaces, first letter capital |
What a player reads for one good, such as “Lime juice”, on a HUD’s counter and in place of its picture until it comes. |
height? |
number |
the model's measured height |
Metres one good adds to a drawn stack. |
image? |
string |
a picture the engine renders of model, wearing the material it registered with |
A picture of one good for a HUD, by URL, such as “/assets/ui/lime.webp”. |
look? |
(item) => string |
undefined |
The registered model one good draws as, from its data, such as a golden lime’s gold. Left out, every good draws model. |
model |
string |
undefined |
The registered model a good of this kind draws as. |
tags? |
readonly string[] |
undefined |
Words a station accepts it by: ["fruit"]. |