IMyCockpit Interface |
[This is preliminary documentation and is subject to change.]
Namespace: Sandbox.ModAPI.Ingame
The IMyCockpit type exposes the following members.
Name | Description | |
---|---|---|
![]() | CalculateShipMass |
Gets information about the current mass of the ship.
(Inherited from IMyShipController.) |
![]() | GetActions | (Inherited from IMyTerminalBlock.) |
![]() | GetActionWithName | (Inherited from IMyTerminalBlock.) |
![]() | GetArtificialGravity |
Gets the detected artificial gravity vector and power at the current location.
(Inherited from IMyShipController.) |
![]() | GetInventory | (Inherited from IMyEntity.) |
![]() | GetInventory(Int32) | (Inherited from IMyEntity.) |
![]() | GetNaturalGravity |
Gets the detected natural gravity vector and power at the current location.
(Inherited from IMyShipController.) |
![]() | GetOwnerFactionTag | (Inherited from IMyCubeBlock.) |
![]() | GetPlayerRelationToOwner | Obsolete. (Inherited from IMyCubeBlock.) |
![]() | GetPosition | (Inherited from IMyEntity.) |
![]() | GetProperties | (Inherited from IMyTerminalBlock.) |
![]() | GetProperty | (Inherited from IMyTerminalBlock.) |
![]() | GetShipSpeed |
Gets the basic ship speed in meters per second, for when you just need to know how fast you're going.
(Inherited from IMyShipController.) |
![]() | GetShipVelocities |
Determines the linear velocities in meters per second and angular velocities in radians per second.
Provides a more accurate representation of the directions and axis speeds.
(Inherited from IMyShipController.) |
![]() | GetTotalGravity |
Gets the total accumulated gravity vector and power at the current location,
taking both natural and artificial gravity into account.
(Inherited from IMyShipController.) |
![]() | GetUserRelationToOwner | (Inherited from IMyCubeBlock.) |
![]() | HasLocalPlayerAccess | (Inherited from IMyTerminalBlock.) |
![]() | HasPlayerAccess | (Inherited from IMyTerminalBlock.) |
![]() | SearchActionsOfName | (Inherited from IMyTerminalBlock.) |
![]() | SetCustomName(String) | Obsolete. (Inherited from IMyTerminalBlock.) |
![]() | SetCustomName(StringBuilder) | Obsolete. (Inherited from IMyTerminalBlock.) |
![]() | TryGetPlanetElevation |
Attempts to get the elevation of the ship in relation to the nearest planet. This method is only available
when a ship is within the gravity well of a planet.
(Inherited from IMyShipController.) |
![]() | TryGetPlanetPosition |
Attempts to get the world position of the nearest planet. This method is only available when a ship is
within the gravity well of a planet.
(Inherited from IMyShipController.) |
![]() | UpdateIsWorking | Obsolete. (Inherited from IMyCubeBlock.) |
![]() | UpdateVisual | Obsolete. (Inherited from IMyCubeBlock.) |
Name | Description | |
---|---|---|
![]() | BlockDefinition | (Inherited from IMyCubeBlock.) |
![]() | CanControlShip |
Determines whether this specific ship controller is capable of controlling the ship it's installed on.
(Inherited from IMyShipController.) |
![]() | CenterOfMass |
Center of mass in world coordinates
(Inherited from IMyShipController.) |
![]() | CheckConnectionAllowed | (Inherited from IMyCubeBlock.) |
![]() | Components | (Inherited from IMyEntity.) |
![]() | ControlThrusters |
Gets or sets whether thrusters are being controlled by this controller.
(Inherited from IMyShipController.) |
![]() | ControlWheels |
Gets or sets whether wheels are being controlled by this controller.
(Inherited from IMyShipController.) |
![]() | CubeGrid | (Inherited from IMyCubeBlock.) |
![]() | CustomData |
Gets or sets the Custom Data string.
NOTE: Only use this for user input. For storing large mod configs, create your own MyModStorageComponent
(Inherited from IMyTerminalBlock.) |
![]() | CustomInfo | (Inherited from IMyTerminalBlock.) |
![]() | CustomName | (Inherited from IMyTerminalBlock.) |
![]() | CustomNameWithFaction | (Inherited from IMyTerminalBlock.) |
![]() | DampenersOverride |
Gets or sets whether dampeners are currently enabled.
(Inherited from IMyShipController.) |
![]() | DefinitionDisplayNameText | (Inherited from IMyCubeBlock.) |
![]() | DetailedInfo | (Inherited from IMyTerminalBlock.) |
![]() | DisassembleRatio | (Inherited from IMyCubeBlock.) |
![]() | DisplayName | (Inherited from IMyEntity.) |
![]() | DisplayNameText | (Inherited from IMyCubeBlock.) |
![]() | EntityId | (Inherited from IMyEntity.) |
![]() | HandBrake |
Gets or sets the current state of the handbrake.
(Inherited from IMyShipController.) |
![]() | HasInventory | (Inherited from IMyEntity.) |
![]() | HasWheels |
Determines whether there are any wheels on this ship.
(Inherited from IMyShipController.) |
![]() | InventoryCount | (Inherited from IMyEntity.) |
![]() | IsBeingHacked | (Inherited from IMyCubeBlock.) |
![]() | IsFunctional | (Inherited from IMyCubeBlock.) |
![]() | IsMainCockpit |
Determines whether this controller is the main cockpit of the shit this doesn't belong here.
|
![]() | IsUnderControl |
Indicates whether a block is locally or remotely controlled.
(Inherited from IMyShipController.) |
![]() | IsWorking | (Inherited from IMyCubeBlock.) |
![]() | Mass | (Inherited from IMyCubeBlock.) |
![]() | Max | (Inherited from IMyCubeBlock.) |
![]() | Min | (Inherited from IMyCubeBlock.) |
![]() | MoveIndicator |
Directional input from user/autopilot. Values can be very large with high controller sensitivity
(Inherited from IMyShipController.) |
![]() | Name | (Inherited from IMyEntity.) |
![]() | NumberInGrid | (Inherited from IMyCubeBlock.) |
![]() | Orientation | (Inherited from IMyCubeBlock.) |
![]() | OwnerId | (Inherited from IMyCubeBlock.) |
![]() | OxygenCapacity |
Gets the maximum oxygen capacity of this cockpit.
|
![]() | OxygenFilledRatio |
Gets the current oxygen level of this cockpit, as a value between 0 (empty) and 1 (full).
|
![]() | Position | (Inherited from IMyCubeBlock.) |
![]() | RollIndicator |
Roll input from user/autopilot. Values can be very large with high controller sensitivity
(Inherited from IMyShipController.) |
![]() | RotationIndicator |
Pitch, yaw input from user/autopilot. Values can be very large with high controller sensitivity
(Inherited from IMyShipController.) |
![]() | ShowHorizonIndicator |
Gets or sets whether the horizon indicator should be displayed for this block.
(Inherited from IMyShipController.) |
![]() | ShowInTerminal | (Inherited from IMyTerminalBlock.) |
![]() | ShowInToolbarConfig | (Inherited from IMyTerminalBlock.) |
![]() | ShowOnHUD | (Inherited from IMyTerminalBlock.) |
![]() | WorldAABB | (Inherited from IMyEntity.) |
![]() | WorldAABBHr | (Inherited from IMyEntity.) |
![]() | WorldMatrix | (Inherited from IMyEntity.) |
![]() | WorldVolume | (Inherited from IMyEntity.) |
![]() | WorldVolumeHr | (Inherited from IMyEntity.) |