Skip to content

CanResearchTech Requirement

Jeremie Rossignol edited this page Jul 17, 2015 · 1 revision

Requirement to check whether a player has the pre-requisites to research a tech. Note that this will also be met if the tech itself is researched, use with a negated TechResearched if this is undesirable.

REQUIREMENT
{
    name = CanResearchTech
    type = CanResearchTech

    // Use one of the two following methods to identifier the tech(s).

    // The technology that needs to be available to research.  Take special
    // note that this does not get validated - if you make a typo, the
    // requirement will always return false.
    //
    // Type:      string
    // Required:  No (multiples allowed)
    //
    tech = engineering101

    // A part that needs to have its technology available to research.
    //
    // Type:      AvailablePart
    // Required:  No (multiples allowed)
    //
    part = SmallGearBay
}
Clone this wiki locally