Alarms#

class AlarmManager#

Alarm manager. Obtained by calling SpaceCenter.AlarmManager.

IList<Alarm> Alarms { get; }#

A list of all alarms.

Game Scenes:

All

static Alarm AddAlarm (IConnection connection, Double time, String title = "Alarm", String description = "")#

Create an alarm.

Parameters:
  • time – Number of seconds from now that the alarm should trigger.

  • title – Title for the alarm.

  • description – Description for the alarm.

Game Scenes:

All

static Alarm AddVesselAlarm (IConnection connection, Double time, Vessel vessel, String title = "Vessel Alarm", String description = "")#

Create an alarm linked to a vessel.

Parameters:
  • time – Number of seconds from now that the alarm should trigger.

  • vessel – Vessel to link the alarm to.

  • title – Title for the alarm.

  • description – Description for the alarm.

Game Scenes:

All

static Alarm AddApoapsisAlarm (IConnection connection, Vessel vessel, Double offset = 60.0, String title = "Apoapsis Alarm", String description = "")#

Create an alarm for the given vessel’s next apoapsis.

Parameters:
  • vessel – The vessel.

  • offset – Time in seconds to offset the alarm by.

  • title – Title for the alarm.

  • description – Description for the alarm.

Game Scenes:

All

static Alarm AddPeriapsisAlarm (IConnection connection, Vessel vessel, Double offset = 60.0, String title = "Periapsis Alarm", String description = "")#

Create an alarm for the given vessel’s next periapsis.

Parameters:
  • vessel – The vessel.

  • offset – Time in seconds to offset the alarm by.

  • title – Title for the alarm.

  • description – Description for the alarm.

Game Scenes:

All

static Alarm AddManeuverNodeAlarm (IConnection connection, Vessel vessel, Node node, Double offset = 60.0, Boolean addBurnTime = true, String title = "Maneuver Node Alarm", String description = "")#

Create an alarm for the given vessel and maneuver node.

Parameters:
  • vessel – The vessel.

  • node – The maneuver node.

  • offset – Time in seconds to offset the alarm by.

  • addBurnTime – Whether the node’s burn time should be included in the alarm.

  • title – Title for the alarm.

  • description – Description for the alarm.

Game Scenes:

All

static Alarm AddSOIAlarm (IConnection connection, Vessel vessel, Double offset = 60.0, String title = "SOI Change Alarm", String description = "")#

Create an alarm for the given vessel’s next sphere of influence change.

Parameters:
  • vessel – The vessel.

  • offset – Time in seconds to offset the alarm by.

  • title – Title for the alarm.

  • description – Description for the alarm.

Game Scenes:

All

class Alarm#

An alarm. Can be accessed using SpaceCenter.AlarmManager.

UInt32 ID { get; }#

Unique identifier of the alarm. KSP destroys and recreates an alarm when it is edited. This id will remain constant between the old and new alarms.

Game Scenes:

All

String Type { get; }#

Type of alarm

Game Scenes:

All

String Title { get; }#

Title of the alarm

Game Scenes:

All

String Description { get; }#

Description of the alarm.

Game Scenes:

All

Double Time { get; }#

Time the alarm will trigger.

Game Scenes:

All

Double TimeUntil { get; }#

Time until the alarm triggers.

Game Scenes:

All

Double EventOffset { get; }#

Seconds between the alarm going off and the event it references.

Game Scenes:

All

Vessel Vessel { get; }#

Vessel the alarm references. null if it does not reference a vessel.

Game Scenes:

All