Query station for allocated storage amounts?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
akeelah
Posts: 231
Joined: Fri, 14. Mar 08, 17:01
x3tc

Query station for allocated storage amounts?

Post by akeelah »

Is there a way to query a Station for the storage amounts the Manager has allocated to each ware (values circled in red, below)?


[ external image ]


Using

Code: Select all

$station.cargo.{$ware}.max
Returns the max storage amount for the entire station, not the smaller amount allocated to that $ware.
Universal Cargo Transfer (UCarT) -- Unleash the power of your Transporter Device!
Mysterial
Posts: 665
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Query station for allocated storage amounts?

Post by Mysterial »

You want .target
User avatar
akeelah
Posts: 231
Joined: Fri, 14. Mar 08, 17:01
x3tc

Re: Query station for allocated storage amounts?

Post by akeelah »

Mysterial wrote: Fri, 22. Mar 19, 15:06 You want .target
Yup. Thanks, not sure how I missed it.
Universal Cargo Transfer (UCarT) -- Unleash the power of your Transporter Device!

Return to “X4: Foundations - Scripts and Modding”