Service#
Provides functionality to interact with Kerbal Alarm Clock.
- KerbalAlarmClock.getAvailable()#
Whether Kerbal Alarm Clock is available.
- Property:
Read-only, cannot be set
- Return type:
boolean
- KerbalAlarmClock.getAlarms()#
A list of all the alarms.
- Property:
Read-only, cannot be set
- Return type:
ArrayofKerbalAlarmClock.Alarm- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- KerbalAlarmClock.alarmWithName(name)#
Get the alarm with the given name, or
nullif no alarms have that name. If more than one alarm has the name, only returns one of them.- Arguments:
name (
string) – Name of the alarm to search for.
- Return type:
KerbalAlarmClock.Alarmornull- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- KerbalAlarmClock.alarmsWithType(type)#
Get a list of alarms of the specified type.
- Arguments:
type (
KerbalAlarmClock.AlarmType) – Type of alarm to return.
- Return type:
ArrayofKerbalAlarmClock.Alarm- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- KerbalAlarmClock.createAlarm(type, name, ut)#
Create a new alarm and return it.
- Arguments:
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:
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration