Show / Hide Table of Contents

Interface IMyRemoteControl

Describes remote control block (PB scripting interface)

Inherited Members
IMyShipController.GetNaturalGravity()
IMyShipController.GetArtificialGravity()
IMyShipController.GetTotalGravity()
IMyShipController.GetShipSpeed()
IMyShipController.GetShipVelocities()
IMyShipController.CalculateShipMass()
IMyShipController.TryGetPlanetPosition(Vector3D)
IMyShipController.TryGetPlanetElevation(MyPlanetElevation, Double)
IMyShipController.CanControlShip
IMyShipController.IsUnderControl
IMyShipController.HasWheels
IMyShipController.ControlWheels
IMyShipController.ControlThrusters
IMyShipController.HandBrake
IMyShipController.DampenersOverride
IMyShipController.ShowHorizonIndicator
IMyShipController.MoveIndicator
IMyShipController.RotationIndicator
IMyShipController.RollIndicator
IMyShipController.CenterOfMass
IMyShipController.IsMainCockpit
IMyTerminalBlock.HasLocalPlayerAccess()
IMyTerminalBlock.HasPlayerAccess(Int64, MyRelationsBetweenPlayerAndBlock)
IMyTerminalBlock.HasNobodyPlayerAccessToBlock()
IMyTerminalBlock.HasPlayerAccessWithNobodyCheck(Int64, Boolean)
IMyTerminalBlock.SetCustomName(String)
IMyTerminalBlock.SetCustomName(StringBuilder)
IMyTerminalBlock.GetActions(List<ITerminalAction>, Func<ITerminalAction, Boolean>)
IMyTerminalBlock.SearchActionsOfName(String, List<ITerminalAction>, Func<ITerminalAction, Boolean>)
IMyTerminalBlock.GetActionWithName(String)
IMyTerminalBlock.GetProperty(String)
IMyTerminalBlock.GetProperties(List<ITerminalProperty>, Func<ITerminalProperty, Boolean>)
IMyTerminalBlock.IsSameConstructAs(IMyTerminalBlock)
IMyTerminalBlock.CustomName
IMyTerminalBlock.CustomNameWithFaction
IMyTerminalBlock.DetailedInfo
IMyTerminalBlock.CustomInfo
IMyTerminalBlock.CustomData
IMyTerminalBlock.ShowOnHUD
IMyTerminalBlock.ShowInTerminal
IMyTerminalBlock.ShowInToolbarConfig
IMyTerminalBlock.ShowInInventory
IMyCubeBlock.GetOwnerFactionTag()
IMyCubeBlock.GetPlayerRelationToOwner()
IMyCubeBlock.GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)
IMyCubeBlock.UpdateIsWorking()
IMyCubeBlock.UpdateVisual()
IMyCubeBlock.BlockDefinition
IMyCubeBlock.CubeGrid
IMyCubeBlock.DefinitionDisplayNameText
IMyCubeBlock.DisassembleRatio
IMyCubeBlock.DisplayNameText
IMyCubeBlock.IsBeingHacked
IMyCubeBlock.IsFunctional
IMyCubeBlock.IsWorking
IMyCubeBlock.Max
IMyCubeBlock.Mass
IMyCubeBlock.Min
IMyCubeBlock.NumberInGrid
IMyCubeBlock.Orientation
IMyCubeBlock.OwnerId
IMyCubeBlock.Position
IMyEntity.GetInventory()
IMyEntity.GetInventory(Int32)
IMyEntity.GetPosition()
IMyEntity.Components
IMyEntity.EntityId
IMyEntity.Name
IMyEntity.DisplayName
IMyEntity.HasInventory
IMyEntity.InventoryCount
IMyEntity.Closed
IMyEntity.WorldAABB
IMyEntity.WorldAABBHr
IMyEntity.WorldMatrix
IMyEntity.WorldVolume
IMyEntity.WorldVolumeHr
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyRemoteControl : IMyShipController, IMyTerminalBlock, IMyCubeBlock, IMyEntity

Properties

CurrentWaypoint

Gets the current target waypoint

Declaration
MyWaypointInfo CurrentWaypoint { get; }
Property Value
Type Description
MyWaypointInfo

Direction

Gets or sets the current flight direction

Declaration
Base6Directions.Direction Direction { get; set; }
Property Value
Type Description
Base6Directions.Direction

FlightMode

Gets or sets the current flight mode

Declaration
FlightMode FlightMode { get; set; }
Property Value
Type Description
FlightMode

IsAutoPilotEnabled

Determines whether the autopilot is currently enabled.

Declaration
bool IsAutoPilotEnabled { get; }
Property Value
Type Description
System.Boolean

SpeedLimit

Gets or sets the autopilot speed limit

Declaration
float SpeedLimit { get; set; }
Property Value
Type Description
System.Single

WaitForFreeWay

if true, if collision avoidance is on, autopilot will wait until path is clear to move forward.

Declaration
bool WaitForFreeWay { get; set; }
Property Value
Type Description
System.Boolean

Methods

AddWaypoint(MyWaypointInfo)

Adds a new waypoint.

Declaration
void AddWaypoint(MyWaypointInfo coords)
Parameters
Type Name Description
MyWaypointInfo coords

Waypoint info

AddWaypoint(Vector3D, String)

Adds a new waypoint.

Declaration
void AddWaypoint(Vector3D coords, string name)
Parameters
Type Name Description
Vector3D coords

World position of waypoint

System.String name

Name of waypoint

ClearWaypoints()

Removes all existing waypoints.

Declaration
void ClearWaypoints()

GetNearestPlayer(out Vector3D)

Gets the nearest player's position. Will only work if the remote control belongs to an NPC

Declaration
bool GetNearestPlayer(out Vector3D playerPosition)
Parameters
Type Name Description
Vector3D playerPosition
Returns
Type Description
System.Boolean

True if was able to get player position

GetWaypointInfo(List<MyWaypointInfo>)

Gets basic information about the currently configured waypoints.

Declaration
void GetWaypointInfo(List<MyWaypointInfo> waypoints)
Parameters
Type Name Description
System.Collections.Generic.List<MyWaypointInfo> waypoints

Buffer array, results would be added into it

SetAutoPilotEnabled(Boolean)

Enables or disables the autopilot.

Declaration
void SetAutoPilotEnabled(bool enabled)
Parameters
Type Name Description
System.Boolean enabled

Should be autopilot enabled or not

SetCollisionAvoidance(Boolean)

Enables or disables collision avoidance.

Declaration
void SetCollisionAvoidance(bool enabled)
Parameters
Type Name Description
System.Boolean enabled

Should be collision avoidance enabled or not

SetDockingMode(Boolean)

Enables or disables docking mode.

Declaration
void SetDockingMode(bool enabled)
Parameters
Type Name Description
System.Boolean enabled

Should be docking mode enabled or not

Extension Methods

TerminalBlockExtentions.GetId(IMyTerminalBlock)
TerminalBlockExtentions.ApplyAction(IMyTerminalBlock, String)
TerminalBlockExtentions.ApplyAction(IMyTerminalBlock, String, List<TerminalActionParameter>)
TerminalBlockExtentions.HasAction(IMyTerminalBlock, String)
TerminalBlockExtentions.HasInventory(IMyTerminalBlock)
TerminalBlockExtentions.GetInventory(IMyTerminalBlock, Int32)
TerminalBlockExtentions.GetInventoryCount(IMyTerminalBlock)
TerminalBlockExtentions.GetUseConveyorSystem(IMyTerminalBlock)
TerminalBlockExtentions.SetUseConveyorSystem(IMyTerminalBlock, Boolean)
TerminalPropertyExtensions.GetValueFloat(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueFloat(IMyTerminalBlock, String, Single)
TerminalPropertyExtensions.GetValueBool(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueBool(IMyTerminalBlock, String, Boolean)
TerminalPropertyExtensions.GetValueColor(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueColor(IMyTerminalBlock, String, Color)
TerminalPropertyExtensions.GetValue<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetDefaultValue<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMininum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMinimum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMaximum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValue<T>(IMyTerminalBlock, String, T)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾