Alarms¶
- public class AlarmManager¶
Alarm manager. Obtained by calling
getAlarmManager()
.- static Alarm addAlarm(Connection connection, double time, String title, String description)¶
Create an alarm.
- static Alarm addVesselAlarm(Connection connection, double time, Vessel vessel, String title, String description)¶
Create an alarm linked to a vessel.
- static Alarm addApoapsisAlarm(Connection connection, Vessel vessel, double offset, String title, String description)¶
Create an alarm for the given vessel’s next apoapsis.
- static Alarm addPeriapsisAlarm(Connection connection, Vessel vessel, double offset, String title, String description)¶
Create an alarm for the given vessel’s next periapsis.
- static Alarm addManeuverNodeAlarm(Connection connection, Vessel vessel, Node node, double offset, boolean addBurnTime, String title, String description)¶
Create an alarm for the given vessel and maneuver node.
- Parameters:
- public class Alarm¶
An alarm. Can be accessed using
getAlarmManager()
.- int getID()¶
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.
- double getTime()¶
Time the alarm will trigger.
- double getTimeUntil()¶
Time until the alarm triggers.
- double getEventOffset()¶
Seconds between the alarm going off and the event it references.