Alarm#
- class Alarm#
Represents an alarm. Obtained by calling
KerbalAlarmClock.Alarms,KerbalAlarmClock.AlarmWithNameorKerbalAlarmClock.AlarmsWithType.- AlarmAction Action { get; set; }#
The action that the alarm triggers.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
Note
An alarm that plays a sound has the action
AlarmAction.Custom. SeeAlarm.PlaySound.
- double Margin { get; set; }#
The number of seconds before the event that the alarm will fire.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- double Time { get; set; }#
The time at which the alarm will fire.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- AlarmType Type { get; }#
The type of the alarm.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- string ID { get; }#
The unique identifier for the alarm.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- string Name { get; set; }#
The short name of the alarm.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- string Notes { get; set; }#
The long description of the alarm.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- double Remaining { get; }#
The number of seconds until the alarm will fire.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- bool Enabled { get; set; }#
Whether the alarm is enabled. A disabled alarm does not fire.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- bool PlaySound { get; set; }#
Whether the alarm plays a sound when it fires.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
Note
An alarm that plays a sound has the action
AlarmAction.Custom. SettingAlarm.Actionto any other value turns the sound off.
- bool Triggered { get; }#
Whether the alarm has fired. Remains true once the alarm has fired; stream this or use it in an event expression to react to the alarm firing.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- bool Repeat { get; set; }#
Whether the alarm will be repeated after it has fired. Only has an effect for alarm types that support repeating (see
Alarm.SupportsRepeat).- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- bool SupportsRepeat { get; }#
Whether this alarm’s type supports repeating (see
Alarm.Repeat).- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- double RepeatPeriod { get; set; }#
The time delay to automatically create an alarm after it has fired. Only has an effect for alarm types that support a repeat period (see
Alarm.SupportsRepeatPeriod).- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- bool SupportsRepeatPeriod { get; }#
Whether this alarm’s type supports a repeat period (see
Alarm.RepeatPeriod).- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- SpaceCenter.Vessel Vessel { get; set; }#
The vessel that the alarm is attached to.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- SpaceCenter.CelestialBody XferOriginBody { get; set; }#
The celestial body the vessel is departing from.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- SpaceCenter.CelestialBody XferTargetBody { get; set; }#
The celestial body the vessel is arriving at.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
- void Remove ()#
Removes the alarm. Any further use of this object throws an exception.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
Note
Any further use of this object throws an exception.