cargo 
Vars | |
can_approve_requests | Can you approve requests placed for cargo? Works differently between the app and the computer. |
---|---|
can_send | Can the supply console send the shuttle back and forth? Used in the UI backend. |
cargo_account | The account this console processes and displays. Independent from the account the shuttle processes. |
cargo_shuttle | The name of the shuttle template being used as the cargo shuttle. 'cargo' is default and contains critical code. Don't change this unless you know what you're doing. |
docking_away | The docking port called when leaving the station. |
docking_home | The docking port called when returning to the station. |
interface_type | Interface name for the ui_interact call for different subtypes. |
is_express | var that makes express console use rockets |
message_cooldown | var that tracks message cooldown |
requestonly | Can this console only send requests? |
stationcargo | If this console can loan the cargo shuttle. Set to false to disable. |
Procs | |
add_item | adds an supply pack to the checkout cart |
get_discount | returns the discount multiplier applied to all supply packs, the discount is calculated as follows: pack_cost * get_discount() |
get_packs_data | returns a list of supply packs for a certain group |
name_to_id | maps the ordename displayed on the ui to its supply pack id |
remove_item | removes an item from the checkout cart |
Var Details
can_approve_requests 
Can you approve requests placed for cargo? Works differently between the app and the computer.
can_send 
Can the supply console send the shuttle back and forth? Used in the UI backend.
cargo_account 
The account this console processes and displays. Independent from the account the shuttle processes.
cargo_shuttle 
The name of the shuttle template being used as the cargo shuttle. 'cargo' is default and contains critical code. Don't change this unless you know what you're doing.
docking_away 
The docking port called when leaving the station.
docking_home 
The docking port called when returning to the station.
interface_type 
Interface name for the ui_interact call for different subtypes.
is_express 
var that makes express console use rockets
message_cooldown 
var that tracks message cooldown
requestonly 
Can this console only send requests?
stationcargo 
If this console can loan the cargo shuttle. Set to false to disable.
Proc Details
add_item
adds an supply pack to the checkout cart
- user - the mobe doing this order
- id - the type of pack to order
- amount - the amount to order. You may not order more then 10 things at once
get_discount
returns the discount multiplier applied to all supply packs, the discount is calculated as follows: pack_cost * get_discount()
get_packs_data
returns a list of supply packs for a certain group
- group - the group of packs to return
- express - if this is an express console
name_to_id
maps the ordename displayed on the ui to its supply pack id
- order_name - the name of the order
remove_item
removes an item from the checkout cart
- id - the id of the cart item to remove