-
Notifications
You must be signed in to change notification settings - Fork 67
HasResourceCapacity Parameter
Jeremie Rossignol edited this page Sep 26, 2015
·
1 revision
Parameter to indicate that the Vessel in question must have a certain capacity for a certain resource (or must have less capacity than a certain number). The HasResourceCapacity parameter can be used in two different modes - simple and extended. In the simple mode, simply provide the parameters to filter on, as in the following example:
PARAMETER { name = HasResourceCapacity type = HasResourceCapacity // The name of the resource to check for. // // Type: Resource // Required: Yes // resource = LiquidFuel // Minimum and maximum quantity of the resource required. // // Type: double // Required: No (defaulted) // Default: 0.01 (minQuantity) // double.MaxValue (maxQuantity) // minQuantity = 10.0 maxQuantity = 1000.0 // Text to use for the parameter // // Type: string // Required: No (defaulted) // Default: Resource: <resource>: <quantity_description> //title = }
For the extended mode, the above parameters may instead be placed inside RESOURCE blocks (which can be repeated):
PARAMETER { name = HasResourceCapacity type = HasResourceCapacity RESOURCE { // The name of the resource to check for. // // Type: Resource // Required: Yes // resource = LiquidFuel // Minimum and maximum quantity of the resource required. // // Type: double // Required: No (defaulted) // Default: 0.01 (minQuantity) // double.MaxValue (maxQuantity) // minQuantity = 10.0 maxQuantity = 1000.0 } RESOURCE { resource = Oxidizer minQuantity = 10.0 maxQuantity = 1000.0 } // Text to use for the parameter // // Type: string // Required: No (defaulted) // Default: Resource Capacity: <resource>: <quantity_description> //title = }
- Vessel Parameters
- VesselParameterGroup
- Vessel Attributes
- Vessel State
- Vessel History
- RemoteTech
- Kerbal Parameters
- Progression Parameters
- Negative Parameters
- Set Parameters
- Planetary Parameters
- Miscellaneous Parameters
Contract Configurator
Configuration File Syntax
Extending Contract Configurator