Skip to content

SpawnKerbal Behaviour Type

Jeremie Rossignol edited this page Jul 16, 2015 · 4 revisions

The SpawnKerbal behaviour can be accessed by referencing it by name in an expression:

CONTRACT_TYPE
{
    name = MyContractType
    
    title = @/MySpawnKerbal.Kerbals().ElementAt(2) is the name of the Kerbal.

    BEHAVIOUR
    {
        name = MySpawnKerbal
        type = SpawnKerbal

        KERBAL
        {
            ...
        }
    }
}

Methods

Method Signature Description
List<Kerbal> Kerbals() Retrieves a list of all Kerbals spawned by this behaviour.
Clone this wiki locally