Interface IMyFlightMovementBlock
Describes flight movement block (mods interface)
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyFlightMovementBlock : IMyFlightMovementBlock, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity
Properties
AditionalDetailInfo
Aditional info from other Ai blocks
Declaration
string AditionalDetailInfo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FacingDirection
Declaration
Base6Directions.DirectionFlags FacingDirection { get; set; }
Property Value
Type | Description |
---|---|
Base6Directions.DirectionFlags |
IsPowered
Returns bool value representing if block has power
Declaration
bool IsPowered { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
AddWaypoint(IMyAutopilotWaypoint)
Adds waypoint to autopilot list
Declaration
void AddWaypoint(IMyAutopilotWaypoint waypoint)
Parameters
Type | Name | Description |
---|---|---|
IMyAutopilotWaypoint | waypoint | Waypoint to add |
RemoveWaypoint(IMyAutopilotWaypoint)
Removes waypoint from autopilot list
Declaration
void RemoveWaypoint(IMyAutopilotWaypoint waypoint)
Parameters
Type | Name | Description |
---|---|---|
IMyAutopilotWaypoint | waypoint | Waypoint to remove |
SetCollisionAvoidanceErrorState(Boolean)
Sets the error state for collision avoidance
Declaration
void SetCollisionAvoidanceErrorState(bool state)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | state | true if there is some error |
Events
AutopilotSpeedLimitValueChanged
Triggers when speed limit has been changed
Declaration
event Action<IMyFlightMovementBlock> AutopilotSpeedLimitValueChanged
Event Type
Type | Description |
---|---|
System.Action<IMyFlightMovementBlock> |
OnWaypointReached
Triggers when autopilot reaches current waypoint
Declaration
event Action<IMyFlightMovementBlock, IMyAutopilotWaypoint> OnWaypointReached
Event Type
Type | Description |
---|---|
System.Action<IMyFlightMovementBlock, IMyAutopilotWaypoint> |