KerbalAlarmClock

This service provides functionality to interact with Kerbal Alarm Clock.

available: boolean

Whether Kerbal Alarm Clock is available.

Attribute:

Read-only, cannot be set

Return type:

boolean

alarms: List

A list of all the alarms.

Attribute:

Read-only, cannot be set

Return type:

List

static alarm_with_name(name)

Get the alarm with the given name, or nil if no alarms have that name. If more than one alarm has the name, only returns one of them.

Parameters:

name (string) – Name of the alarm to search for.

Return type:

KerbalAlarmClock.Alarm

static alarms_with_type(type)

Get a list of alarms of the specified type.

Parameters:

type (KerbalAlarmClock.AlarmType) – Type of alarm to return.

Return type:

List

static create_alarm(type, name, ut)

Create a new alarm and return it.

Parameters:
  • type (KerbalAlarmClock.AlarmType) – Type of the new alarm.

  • name (string) – Name of the new alarm.

  • ut (number) – Time at which the new alarm should trigger.

Return type:

KerbalAlarmClock.Alarm