Skip to content

HasAstronaut Requirement

Jeremie Rossignol edited this page Jul 14, 2015 · 3 revisions

Requirement that checks whether the player has Kerbals in their space program matching the given criteria.

REQUIREMENT
{
    name = HasAstronaut
    type = HasAstronaut

    // The type of trait required.
    //
    // Type:      string
    // Required:  No
    // Values (for stock KSP):
    //     Pilot
    //     Engineer
    //     Scientist
    //
    trait = Engineer

    // Minimum experience level required.
    //
    // Type:      int
    // Required:  No (defaulted)
    // Default:   0
    //
    minExperience = 2

    // Maximum experience level allowed.
    //
    // Type:      int
    // Required:  No (defaulted)
    // Default:   5
    //
    maxExperience = 5

    // Minimum count.
    //
    // Type:      int
    // Required:  No (defaulted)
    // Default:   1
    //
    minCount = 1

    // Maximum count.
    //
    // Type:      int
    // Required:  No (defaulted)
    // Default:   int.MaxValue
    //
    maxCount = 5
}
Clone this wiki locally