Difference between revisions of "Programming Guide/Action List"
(Completely removed and moved action list information from the block into the progrmaming guide and gave its own sub-page since it is such an extensive list. saved draft) |
m (→Terminal Action and Property List) |
||
(41 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{tocright}} | {{tocright}} | ||
− | == Action List == | + | {{Under Construction}} |
+ | |||
+ | In addition to interface methods and properties given in the interface API, the in-game programming also provides '''terminal actions''' and '''terminal properties'''. Those terminal actions and properties behave like the options in the terminal system ingame that players can interact with. | ||
+ | |||
+ | Notice that terminal actions and properties should be obsolete, because the most block interfaces now provide API methods and properties that users can invoke. | ||
+ | |||
+ | == Invoking Terminal Actions and Properties == | ||
+ | |||
+ | The In-game Programming system provides methods for users to invoke the terminal properties, with a string parameter determining the name of the terminal action or property needed. Those methods belong to the IMyTerminalBlock interface. While all terminal blocks (Reactor, for example) are the sub-types of IMyTerminalBlock, they all have the methods. However, if the string parameter asks for the terminal action or property which does not exist in the given block, a '''NullReferenceException''' will be thrown<ref>https://github.com/malware-dev/MDK-SE/wiki/Terminal-Properties-and-Actions</ref>. | ||
+ | |||
+ | In the programming namespace, the terminal actions are accessed as '''ITerminalAction''' interface and the terminal properties are '''ITerminalProperty'''. | ||
+ | |||
+ | === Terminal Actions === | ||
+ | |||
+ | To make the block apply action, call | ||
+ | |||
+ | block.ApplyAction(string actionName) | ||
+ | |||
+ | For example: | ||
+ | |||
+ | // Turn off a light | ||
+ | IMyInterior light; | ||
+ | // codes that you assign the actual light you want to turn off. | ||
+ | light.ApplyAction("OnOff_Off"); // turn off the light | ||
+ | |||
+ | === Terminal Properties === | ||
+ | |||
+ | To access the terminal properties, two methods are provided. Unlike the action method above, those property methods are generic, which means a extra type parameter is needed when calling the methods. | ||
+ | |||
+ | To get a property of a block, call | ||
+ | |||
+ | block.GetValue<T>(string propertyName) | ||
+ | |||
+ | For example: | ||
+ | |||
+ | // Get the color of a light | ||
+ | IMyInteriorLight light; | ||
+ | // codes that you assign the actual light you want to get color from. | ||
+ | Color color = light.GetValue<Color>("Color"); // get color | ||
+ | |||
+ | To set a property of a block, call | ||
+ | |||
+ | block.SetValue<T>(string propertyName, T property) | ||
+ | |||
+ | For example: | ||
+ | |||
+ | // Set the color of a light | ||
+ | Color color = new Color(50, 100, 200); // create a new color | ||
+ | IMyInteriorLight light; | ||
+ | // codes that you assign the actual light you want to set color | ||
+ | light.SetValue<Color>("Color", color); // set color | ||
+ | |||
+ | == Terminal Action List (Old) == | ||
All terminal blocks have the following properties: | All terminal blocks have the following properties: | ||
− | Interface name: this name is the name of the block in code, it can differ from the name as displayed in the building screen. E.g. Antenna interface name is IMyRadioAntenna - you need to use this interface if you want to get all antennas. | + | |
+ | '''Interface name:''' this name is the name of the block in code, it can differ from the name as displayed in the building screen. E.g. Antenna interface name is IMyRadioAntenna - you need to use this interface if you want to get all antennas. | ||
'''Parent:''' this is parent of the block (all blocks have IMyTerminalBlock as parent), this can be used for getting type of blocks instead of concrete block type. E.g. if you want to get all lights in grid you will use IMyLightingBlock, if you want only interior light you can use IMyInteriorLight. | '''Parent:''' this is parent of the block (all blocks have IMyTerminalBlock as parent), this can be used for getting type of blocks instead of concrete block type. E.g. if you want to get all lights in grid you will use IMyLightingBlock, if you want only interior light you can use IMyInteriorLight. | ||
Line 9: | Line 62: | ||
'''Field:''' this is read only field available for block e.g. for IMyBeacon you can get Radius property. Based on this property you can increase/decrease radius of beacon. | '''Field:''' this is read only field available for block e.g. for IMyBeacon you can get Radius property. Based on this property you can increase/decrease radius of beacon. | ||
− | '''Actions:''' these are all available actions for block with their names in game, so if you want to increase broadcast radius for antenna, you need to execute | + | '''Actions:''' these are all available actions for block with their names in game, so if you want to increase broadcast radius for antenna, you need to execute IncreaseRadius action for block. |
− | {| class="wikitable" style="text-align: center; | + | {| class="wikitable" style="text-align: center;" |
+ | |- style="vertical-align:top;" | ||
| | | | ||
− | === | + | === Air Vent === |
+ | |||
+ | '''Interface name:''' IMyAirVent<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:''' <br /> | ||
+ | bool CanPressurize { get; }<br /> | ||
+ | bool Depressurize { get; set; }<br /> | ||
+ | bool IsDepressurizing { get; } <b>Depreciated</b> <br /> | ||
+ | bool PressurizationEnabled { get; }<br /> | ||
+ | enum VentStatus Status { get; }<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off ->Toggle Block Off<br /> | ||
+ | Depressurize -> Depressurize On/Off<br /> | ||
+ | Depressurize_On -> Depressurize On<br /> | ||
+ | Depressurize_Off -> Depressurize Off<br /> | ||
+ | | | ||
+ | |||
+ | === Advanced Rotor === | ||
− | '''Interface name:''' | + | '''Interface name:''' IMyMotorAdvancedStator<br /> |
+ | '''Parent:''' IMyMotorBase <br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' float | + | '''Fields:''' <br /> |
+ | float Angle { get; }<br /> | ||
+ | float BrakingTorque { get; set; }<br /> | ||
+ | float Displacement { get; set; }<br /> | ||
+ | float LowerLimitDeg { get; set; }<br /> | ||
+ | float LowerLimitRad { get; set; }<br /> | ||
+ | bool RotorLock { get; set; }<br /> | ||
+ | float TargetVelocityRad { get; set; }<br /> | ||
+ | float TargetVelocityRPM { get; set; }<br /> | ||
+ | float Torque { get; set; }<br /> | ||
+ | float UpperLimitDeg { get; set; }<br /> | ||
+ | float UpperLimitRad { get; set; }<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
− | OnOff_Off -> Toggle | + | OnOff_Off ->Toggle Block Off<br /> |
− | + | Reverse -> Reverse<br /> | |
− | + | Attach -> Attach<br /> | |
+ | IncreaseTorque -> Increase Torque<br /> | ||
+ | DecreaseTorque -> Decrease Torque<br /> | ||
+ | IncreaseBrakingTorque -> Increase Braking Torque<br /> | ||
+ | DecreaseBrakingTorque -> Decrease Braking Torque<br /> | ||
+ | IncreaseVelocity -> Increase Velocity<br /> | ||
+ | ResetVelocity -> Reset Velocity<br /> | ||
+ | IncreaseLowerLimit -> Increase Lower Limit<br /> | ||
+ | DecreaseLowerLimit -> Decrease Lower Limit<br /> | ||
+ | IncreaseUpperLimit -> Increase Upper Limit<br /> | ||
+ | DecreaseUpperLimit -> Decrease Upper Limit<br /> | ||
+ | IncreaseDisplacement -> Increase Rotor Displacement<br /> | ||
+ | DecreaseDisplacement -> Decrease Rotor Displacement<br /> | ||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Antenna === |
− | + | ||
+ | '''Interface name:''' IMyRadioAntenna<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:''' <br /> |
+ | long AttachedProgrammableBlock { get; set; }<br /> | ||
+ | bool EnableBroadcasting { get; set; }<br /> | ||
+ | bool IgnoreAlliedBroadcast { get; set; }<br /> | ||
+ | bool IgnoreOtherBroadcast { get; set; }<br /> | ||
+ | bool IsBroadcasting { get; }<br /> | ||
+ | float Radius { get; set; }<br /> | ||
+ | bool ShowShipName { get; set; }<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | + | IncreaseRadius -> Increase Broadcast radius<br /> | |
+ | DecreaseRadius -> Decrease Broadcast radius<br /> | ||
+ | EnableBroadCast -> Toggle Broadcast On/Off<br /> | ||
+ | ShowShipName -> Toggle Showing Ship Name <br /> | ||
+ | |||
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Artificial Mass === | === Artificial Mass === | ||
'''Interface name:''' IMyVirtualMass<br /> | '''Interface name:''' IMyVirtualMass<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:''' none <br /> |
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
− | OnOff_Off -> Toggle block Off | + | OnOff_Off -> Toggle block Off<br /> |
− | |||
| | | | ||
+ | |||
=== Assembler === | === Assembler === | ||
Line 56: | Line 168: | ||
'''Parent:''' IMyProductionBlock<br /> | '''Parent:''' IMyProductionBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool | + | '''Fields:''' <br /> |
+ | bool CooperativeMode { get; set; }<br /> | ||
+ | float CurrentProgress { get; }<br /> | ||
+ | bool DisassembleEnabled { get; }<br /> | ||
+ | MyAssemblerMode Mode { get; set; }<br /> | ||
+ | bool Repeating { get; set; }<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | UseConveyor -> Use Conveyor System On/Off | + | UseConveyor -> Use Conveyor System On/Off<br /> |
+ | slaveMode -> Cooperative Mode On/Off <br /> | ||
| | | | ||
+ | |||
=== Battery === | === Battery === | ||
'''Interface name:''' IMyBatteryBlock<br /> | '''Interface name:''' IMyBatteryBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool HasCapacityRemaining | + | '''Fields:''' <br /> |
+ | float CurrentInput { get; }<br /> | ||
+ | float CurrentOutput { get; }<br /> | ||
+ | float CurrentStoredPower { get; }<br /> | ||
+ | bool HasCapacityRemaining { get; }<br /> | ||
+ | bool IsCharging { get; }<br /> | ||
+ | float MaxInput { get; }<br /> | ||
+ | float MaxOutput { get; }<br /> | ||
+ | float MaxStoredPower { get; }<br /> | ||
+ | bool OnlyDischarge { get; set; }<br /> | ||
+ | bool OnlyRecharge { get; set; }<br /> | ||
+ | bool SemiautoEnabled { get; set; }<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | Recharge -> Recharge On/Off | + | Recharge -> Recharge On/Off<br /> |
+ | Discharge -> Discharge On/Off<br /> | ||
+ | SemiAuto -> Semi-auto On/Off<br /> | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Beacon === | === Beacon === | ||
'''Interface name:''' IMyBeacon<br /> | '''Interface name:''' IMyBeacon<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:''' <br /> |
+ | float Radius { get; set; }<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
IncreaseRadius -> Increase Broadcast radius<br /> | IncreaseRadius -> Increase Broadcast radius<br /> | ||
− | DecreaseRadius -> Decrease Broadcast radius | + | DecreaseRadius -> Decrease Broadcast radius<br /> |
− | |||
| | | | ||
+ | |||
=== Button Panel === | === Button Panel === | ||
'''Interface name:''' IMyButtonPanel<br /> | '''Interface name:''' IMyButtonPanel<br /> | ||
− | '''Fields:''' | + | '''Fields:''' <br /> |
+ | bool AnyoneCanUse { get; set; } | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
− | + | OnOff -> Toggle block On/Off<br /> | |
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
| | | | ||
+ | |||
=== Camera === | === Camera === | ||
+ | |||
'''Interface name:''' IMyCameraBlock<br /> | '''Interface name:''' IMyCameraBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:'''<br /> |
+ | double AvailableScanRange { get; }<br /> | ||
+ | bool EnableRaycast { get; set; }<br /> | ||
+ | bool IsActive { get; }<br /> | ||
+ | float RaycastConeLimit { get; }<br /> | ||
+ | double RaycastDistanceLimit { get; }<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | View -> View | + | View -> View<br /> |
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
− | === Cockpit === | + | |
+ | === Cargo Containers === | ||
+ | |||
+ | '''Interface name:''' IMyCargoContainer<br /> | ||
+ | '''Parent:''' IMyTerminalBlock<br /> | ||
+ | '''Fields:''' none<br /> | ||
+ | |||
+ | '''Actions:''' none<br /> | ||
+ | | | ||
+ | |||
+ | === Cockpit, Control Station, Flight Seat === | ||
'''Interface name:''' IMyCockpit<br /> | '''Interface name:''' IMyCockpit<br /> | ||
Line 117: | Line 275: | ||
bool ControlThrusters<br /> | bool ControlThrusters<br /> | ||
bool HandBrake <br /> | bool HandBrake <br /> | ||
− | bool DampenersOverride | + | bool DampenersOverride <br /> |
+ | bool MainCockpit<br /> | ||
+ | bool HorizonIndicator<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
ControlThrusters -> Control thrusters On/Off<br /> | ControlThrusters -> Control thrusters On/Off<br /> | ||
ControlWheels -> Control wheels On/Off<br /> | ControlWheels -> Control wheels On/Off<br /> | ||
HandBrake -> Handbrake On/Off<br /> | HandBrake -> Handbrake On/Off<br /> | ||
− | DampenersOverride -> Inertia dampeners On/Off | + | DampenersOverride -> Inertia dampeners On/Off<br /> |
− | + | MainCockpit -> Main Cockpit On/Off<br /> | |
+ | HorizonIndicator -> Show Horizon and Altitude On/Off<br /> | ||
| | | | ||
+ | |||
=== Collector === | === Collector === | ||
'''Interface name:''' IMyCollector<br /> | '''Interface name:''' IMyCollector<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool UseConveyorSystem | + | '''Fields:''' <br /> bool UseConveyorSystem |
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
UseConveyor -> Use Conveyor System On/Off | UseConveyor -> Use Conveyor System On/Off | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Connector === | === Connector === | ||
Line 145: | Line 310: | ||
bool ThrowOut <br /> | bool ThrowOut <br /> | ||
bool CollectAll <br /> | bool CollectAll <br /> | ||
− | bool IsLocked | + | bool IsLocked <br /> |
− | '''Actions''' | + | '''Actions:'''<br /> |
− | OnOff -> Toggle block On/Off<br /> | + | OnOff -> Toggle block On/Off <br /> |
− | OnOff_On -> Toggle block On<br /> | + | OnOff_On -> Toggle block On <br /> |
− | OnOff_Off -> Toggle block Off<br /> | + | OnOff_Off -> Toggle block Off <br /> |
− | ThrowOut -> Throw Out On/Off<br /> | + | ThrowOut -> Throw Out On/Off <br /> |
− | CollectAll -> Collect All On/Off<br /> | + | CollectAll -> Collect All On/Off <br /> |
− | SwitchLock -> Switch lock | + | SwitchLock -> Switch lock <br /> |
| | | | ||
+ | |||
=== Control Panel === | === Control Panel === | ||
'''Interface name:''' IMyControlPanel<br /> | '''Interface name:''' IMyControlPanel<br /> | ||
− | '''Fields:''' | + | '''Fields:''' none<br /> |
− | '''Actions:''' | + | '''Actions:'''none<br /> |
− | |||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Conveyor Sorter === |
− | ''' | + | |
− | ''' | + | '''Interface name:''' IMyConveyorSorter<br /> |
− | + | '''Fields:''' <br /> bool DrainAll<br /> | |
− | + | ||
− | + | '''Actions:'''<br /> | |
− | + | OnOff -> Toggle block On/Off <br /> | |
+ | OnOff_On -> Toggle block On <br /> | ||
+ | OnOff_Off -> Toggle block Off <br /> | ||
+ | DrainAll -> Drain All On/Off<br /> | ||
− | + | |- style="vertical-align:top;" | |
− | |||
− | |||
− | |||
− | |||
| | | | ||
+ | |||
=== Door === | === Door === | ||
'''Interface name:''' IMyDoor<br /> | '''Interface name:''' IMyDoor<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool Open | + | '''Fields:''' <br /> bool Open |
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | Open -> Open/ | + | Open -> Open/Close Door<br /> |
− | Open_On -> Open<br /> | + | Open_On -> Open Door<br /> |
− | Open_Off -> | + | Open_Off -> Close Door<br /> |
| | | | ||
+ | |||
=== Drill === | === Drill === | ||
'''Interface name:''' IMyShipDrill<br /> | '''Interface name:''' IMyShipDrill<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool UseConveyorSystem | + | '''Fields:''' <br /> bool UseConveyorSystem<br /> |
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | UseConveyor -> Use Conveyor System On/Off | + | UseConveyor -> Use Conveyor System On/Off<br /> |
− | |||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Gatling Gun === |
− | '''Parent:''' | + | |
− | '''Fields:''' <br /> | + | '''Interface name:''' IMySmallGatlingGun<br /> |
− | bool | + | '''Parent:''' IMyUserControllableGun<br /> |
− | bool | + | '''Parent:''' IMyFunctionalBlock<br /> |
− | + | '''Fields:''' <br /> | |
− | + | bool Shoot<br /> | |
+ | bool UseConveyor<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | UseConveyor -> Use Conveyor System On/Off<br /> | ||
+ | ShootOnce -> Shoots Once<br /> | ||
+ | Shoot -> Shoot On/Off<br /> | ||
+ | Shoot_On -> Shoot On<br /> | ||
+ | Shoot_Off-> Shoot Off<br /> | ||
− | + | |- style="vertical-align:top;" | |
− | |||
− | |||
− | |||
− | |||
| | | | ||
+ | |||
=== Gatling Turret === | === Gatling Turret === | ||
Line 226: | Line 397: | ||
'''Parent:''' IMyLargeConveyorTurretBase<br /> | '''Parent:''' IMyLargeConveyorTurretBase<br /> | ||
'''Parent:''' IMyLargeTurretBase<br /> | '''Parent:''' IMyLargeTurretBase<br /> | ||
+ | '''Parent:''' IMyUserControllableGun<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
'''Fields:''' <br /> | '''Fields:''' <br /> | ||
Line 231: | Line 403: | ||
bool CanControl<br /> | bool CanControl<br /> | ||
float Range | float Range | ||
+ | bool Shoot<br /> | ||
+ | bool EnableIdleMovement<br /> | ||
+ | bool TargetMeteors<br /> | ||
+ | bool TargetMoving<br /> | ||
+ | bool TargetMissiles<br /> | ||
+ | bool TargetSmallShips<br /> | ||
+ | bool TargetLargeShips<br /> | ||
+ | bool TargetCharacters<br /> | ||
+ | bool TargetStations<br /> | ||
+ | bool TargetNeutrals<br /> | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 239: | Line 421: | ||
IncreaseRange -> Increase Radius<br /> | IncreaseRange -> Increase Radius<br /> | ||
DecreaseRange -> Decrease Radius<br /> | DecreaseRange -> Decrease Radius<br /> | ||
− | UseConveyor -> Use Conveyor System On/Off | + | UseConveyor -> Use Conveyor System On/Off<br /> |
+ | ShootOnce -> Shoot once<br /> | ||
+ | Shoot -> Shoot On/Off<br /> | ||
+ | Shoot_On -> Shoot On<br /> | ||
+ | Shoot_Off -> Shoot Off<br /> | ||
+ | IncreaseRange -> Increase Aiming Radius<br /> | ||
+ | DecreaseRange -> Decrease Aiming Radius<br /> | ||
+ | EnableIdleMovement -> Idle Movement On/Off<br /> | ||
+ | EnableIdleMovement_On -> Idle Movement On<br /> | ||
+ | EnableIdleMovement_Off -> Idle Movement Off<br /> | ||
+ | TargetMeteors -> Target meteors On/Off<br /> | ||
+ | TargetMeteors_On -> Target meteors On<br /> | ||
+ | TargetMeteors_Off -> Target meteors Off<br /> | ||
+ | TargetMoving -> Target moving On/Off<br /> | ||
+ | TargetMoving_On -> Target moving On<br /> | ||
+ | TargetMoving_Off -> Target moving Off<br /> | ||
+ | TargetMissiles -> Target missiles On/Off<br /> | ||
+ | TargetMissiles_On -> Target missiles On<br /> | ||
+ | TargetMissiles_Off -> Target missiles Off<br /> | ||
+ | TargetSmallShips -> Target small ships On/Off<br /> | ||
+ | TargetSmallShips_On -> Target small ships On<br /> | ||
+ | TargetSmallShips_Off -> Target small ships Off<br /> | ||
+ | TargetLargeShips -> Target large ship On/Off<br /> | ||
+ | TargetLargeShips_On -> Target large ship On<br /> | ||
+ | TargetLargeShips_Off -> Target large ship Off<br /> | ||
+ | TargetCharacters -> Target characters On/Off<br /> | ||
+ | TargetCharacters_On -> Target characters On<br /> | ||
+ | TargetCharacters_Off -> Target characters Off<br /> | ||
+ | TargetStations -> Target stations On/Off<br /> | ||
+ | TargetStations_On -> Target stations On<br /> | ||
+ | TargetStations_Off -> Target stations Off<br /> | ||
+ | TargetNeutrals -> Target neutrals On/Off<br /> | ||
+ | TargetNeutrals_On -> Target neutrals On<br /> | ||
+ | TargetNeutrals_Off -> Target neutrals Off<br /> | ||
| | | | ||
+ | |||
=== Gravity Generator === | === Gravity Generator === | ||
Line 252: | Line 468: | ||
float Gravity | float Gravity | ||
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 263: | Line 479: | ||
DecreaseDepth -> Decrease Field depth<br /> | DecreaseDepth -> Decrease Field depth<br /> | ||
IncreaseGravity -> Increase Acceleration<br /> | IncreaseGravity -> Increase Acceleration<br /> | ||
− | DecreaseGravity -> Decrease Acceleration | + | DecreaseGravity -> Decrease Acceleration<br /> |
− | |||
| | | | ||
+ | |||
=== Grinder === | === Grinder === | ||
Line 271: | Line 487: | ||
'''Parent:''' IMyShipToolBase<br /> | '''Parent:''' IMyShipToolBase<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:''' none <br /> |
− | '''Actions''' | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | UseConveyor -> Use Conveyor System On/Off | + | UseConveyor -> Use Conveyor System On/Off<br /> |
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Gyroscope === | === Gyroscope === | ||
'''Interface name:''' IMyGyro<br /> | '''Interface name:''' IMyGyro<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' <br /> | + | '''Fields:'''<br /> |
float GyroPower <br /> | float GyroPower <br /> | ||
bool GyroOverride <br /> | bool GyroOverride <br /> | ||
Line 290: | Line 509: | ||
float Roll | float Roll | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 304: | Line 523: | ||
DecreaseRoll -> Decrease Roll override | DecreaseRoll -> Decrease Roll override | ||
| | | | ||
+ | |||
=== Interior Light === | === Interior Light === | ||
Line 309: | Line 529: | ||
'''Parent:''' IMyLightingBlock<br /> | '''Parent:''' IMyLightingBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
− | float | + | float BlinkIntervalSeconds { get; set; }<br /> |
− | float | + | float BlinkLength { get; set; }<br /> |
− | float | + | float BlinkOffset { get; set; }<br /> |
− | float | + | Color Color { get; set; }<br /> |
− | float | + | float Falloff { get; set; }<br /> |
+ | float Intensity { get; set; }<br /> | ||
+ | float Radius { get; set; }<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 328: | Line 550: | ||
IncreaseBlink Offset -> Increase Blink Offset<br /> | IncreaseBlink Offset -> Increase Blink Offset<br /> | ||
DecreaseBlink Offset -> Decrease Blink Offset | DecreaseBlink Offset -> Decrease Blink Offset | ||
− | |||
| | | | ||
+ | |||
=== Interior Turret === | === Interior Turret === | ||
'''Interface name:''' IMyLargeInteriorTurret<br /> | '''Interface name:''' IMyLargeInteriorTurret<br /> | ||
'''Parent:''' IMyLargeTurretBase<br /> | '''Parent:''' IMyLargeTurretBase<br /> | ||
+ | '''Parent:''' IMyUserControllableGun<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
bool CanControl<br /> | bool CanControl<br /> | ||
− | float Range | + | float Range<br /> |
+ | bool Shoot<br /> | ||
+ | bool EnableIdleMovement<br /> | ||
+ | bool TargetMeteors<br /> | ||
+ | bool TargetMoving<br /> | ||
+ | bool TargetMissiles<br /> | ||
+ | bool TargetSmallShips<br /> | ||
+ | bool TargetLargeShips<br /> | ||
+ | bool TargetCharacters<br /> | ||
+ | bool TargetStations<br /> | ||
+ | bool TargetNeutrals<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 345: | Line 578: | ||
Control -> Control<br /> | Control -> Control<br /> | ||
IncreaseRange -> Increase Radius<br /> | IncreaseRange -> Increase Radius<br /> | ||
− | DecreaseRange -> Decrease Radius | + | DecreaseRange -> Decrease Radius<br /> |
+ | ShootOnce -> Shoot once<br /> | ||
+ | Shoot -> Shoot On/Off<br /> | ||
+ | Shoot_On -> Shoot On<br /> | ||
+ | Shoot_Off -> Shoot Off<br /> | ||
+ | IncreaseRange -> Increase Aiming Radius<br /> | ||
+ | DecreaseRange -> Decrease Aiming Radius<br /> | ||
+ | EnableIdleMovement -> Idle Movement On/Off<br /> | ||
+ | EnableIdleMovement_On -> Idle Movement On<br /> | ||
+ | EnableIdleMovement_Off -> Idle Movement Off<br /> | ||
+ | TargetMeteors -> Target meteors On/Off<br /> | ||
+ | TargetMeteors_On -> Target meteors On<br /> | ||
+ | TargetMeteors_Off -> Target meteors Off<br /> | ||
+ | TargetMoving -> Target moving On/Off<br /> | ||
+ | TargetMoving_On -> Target moving On<br /> | ||
+ | TargetMoving_Off -> Target moving Off<br /> | ||
+ | TargetMissiles -> Target missiles On/Off<br /> | ||
+ | TargetMissiles_On -> Target missiles On<br /> | ||
+ | TargetMissiles_Off -> Target missiles Off<br /> | ||
+ | TargetSmallShips -> Target small ships On/Off<br /> | ||
+ | TargetSmallShips_On -> Target small ships On<br /> | ||
+ | TargetSmallShips_Off -> Target small ships Off<br /> | ||
+ | TargetLargeShips -> Target large ship On/Off<br /> | ||
+ | TargetLargeShips_On -> Target large ship On<br /> | ||
+ | TargetLargeShips_Off -> Target large ship Off<br /> | ||
+ | TargetCharacters -> Target characters On/Off<br /> | ||
+ | TargetCharacters_On -> Target characters On<br /> | ||
+ | TargetCharacters_Off -> Target characters Off<br /> | ||
+ | TargetStations -> Target stations On/Off<br /> | ||
+ | TargetStations_On -> Target stations On<br /> | ||
+ | TargetStations_Off -> Target stations Off<br /> | ||
+ | TargetNeutrals -> Target neutrals On/Off<br /> | ||
+ | TargetNeutrals_On -> Target neutrals On<br /> | ||
+ | TargetNeutrals_Off -> Target neutrals Off<br /> | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | | ||
+ | |||
+ | === Jump Drive === | ||
+ | '''Interface name:''' IMyJumpDrive<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:''' <br /> | ||
+ | bool Recharge<br /> | ||
+ | bool JumpDistance<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | Recharge -> Recharge On/Off<br /> | ||
+ | Recharge_On -> Recharge On<br /> | ||
+ | Recharge_Off -> Recharge Off<br /> | ||
+ | IncreaseJumpDistance -> Increase jump distance<br /> | ||
+ | DecreaseJumpDistance -> Decrease jump distance<br /> | ||
| | | | ||
+ | |||
=== Landing Gear === | === Landing Gear === | ||
'''Interface name:''' IMyLandingGear<br /> | '''Interface name:''' IMyLandingGear<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
− | float BreakForce | + | bool Autolock<br /> |
+ | float BreakForce<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 363: | Line 651: | ||
Autolock -> Autolock On/Off<br /> | Autolock -> Autolock On/Off<br /> | ||
IncreaseBreakForce -> Increase Break Force<br /> | IncreaseBreakForce -> Increase Break Force<br /> | ||
− | DecreaseBreakForce -> Decrease Break Force | + | DecreaseBreakForce -> Decrease Break Force<br /> |
| | | | ||
− | |||
− | + | === Laser Antenna === | |
− | |||
− | |||
− | |||
− | |||
− | === | ||
− | '''Interface name:''' | + | '''Interface name:''' IMyLaserAntenna<br /> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
− | bool | + | bool isPerm<br /> |
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | + | Idle -> Idle<br /> | |
− | |- | + | PasteGpsCoords -> Paste coordinates<br /> |
+ | ConnectGPS -> Connect to coordinates<br /> | ||
+ | isPerm -> Permanent connection On/Off<br /> | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Medical Room=== |
+ | |||
+ | '''Interface name:''' IMyMedicalRoom<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool | + | '''Fields:''' <br /> |
− | + | bool TakeOwnership<br /> | |
− | '''Actions'''<br /> | + | bool SetFaction<br /> |
+ | '''Actions:'''<br /> | ||
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | |||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Merge Block === |
+ | |||
+ | '''Interface name:''' IMyShipMergeBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:''' none<br /> |
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | |||
− | |||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Missile Turret === |
+ | |||
+ | '''Interface name:''' IMyMissileTurret<br /> | ||
+ | '''Parent:''' IMyLargeConveyorTurretBase<br /> | ||
+ | '''Parent:''' IMyLargeTurretBase<br /> | ||
+ | '''Parent:''' IMyUserControllableGun<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' float | + | '''Fields:''' <br /> |
+ | bool CanControl<br /> | ||
+ | float Range<br /> | ||
+ | bool Shoot<br /> | ||
+ | bool EnableIdleMovement<br /> | ||
+ | bool TargetMeteors<br /> | ||
+ | bool TargetMoving<br /> | ||
+ | bool TargetMissiles<br /> | ||
+ | bool TargetSmallShips<br /> | ||
+ | bool TargetLargeShips<br /> | ||
+ | bool TargetCharacters<br /> | ||
+ | bool TargetStations<br /> | ||
+ | bool TargetNeutrals<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | + | Control -> Control<br /> | |
− | + | IncreaseRange -> Increase Radius<br /> | |
− | |- | + | DecreaseRange -> Decrease Radius<br /> |
+ | ShootOnce -> Shoot once<br /> | ||
+ | Shoot -> Shoot On/Off<br /> | ||
+ | Shoot_On -> Shoot On<br /> | ||
+ | Shoot_Off -> Shoot Off<br /> | ||
+ | IncreaseRange -> Increase Aiming Radius<br /> | ||
+ | DecreaseRange -> Decrease Aiming Radius<br /> | ||
+ | UseConveyor -> Use Conveyor System On/Off<br /> | ||
+ | EnableIdleMovement -> Idle Movement On/Off<br /> | ||
+ | EnableIdleMovement_On -> Idle Movement On<br /> | ||
+ | EnableIdleMovement_Off -> Idle Movement Off<br /> | ||
+ | TargetMeteors -> Target meteors On/Off<br /> | ||
+ | TargetMeteors_On -> Target meteors On<br /> | ||
+ | TargetMeteors_Off -> Target meteors Off<br /> | ||
+ | TargetMoving -> Target moving On/Off<br /> | ||
+ | TargetMoving_On -> Target moving On<br /> | ||
+ | TargetMoving_Off -> Target moving Off<br /> | ||
+ | TargetMissiles -> Target missiles On/Off<br /> | ||
+ | TargetMissiles_On -> Target missiles On<br /> | ||
+ | TargetMissiles_Off -> Target missiles Off<br /> | ||
+ | TargetSmallShips -> Target small ships On/Off<br /> | ||
+ | TargetSmallShips_On -> Target small ships On<br /> | ||
+ | TargetSmallShips_Off -> Target small ships Off<br /> | ||
+ | TargetLargeShips -> Target large ship On/Off<br /> | ||
+ | TargetLargeShips_On -> Target large ship On<br /> | ||
+ | TargetLargeShips_Off -> Target large ship Off<br /> | ||
+ | TargetCharacters -> Target characters On/Off<br /> | ||
+ | TargetCharacters_On -> Target characters On<br /> | ||
+ | TargetCharacters_Off -> Target characters Off<br /> | ||
+ | TargetStations -> Target stations On/Off<br /> | ||
+ | TargetStations_On -> Target stations On<br /> | ||
+ | TargetStations_Off -> Target stations Off<br /> | ||
+ | TargetNeutrals -> Target neutrals On/Off<br /> | ||
+ | TargetNeutrals_On -> Target neutrals On<br /> | ||
+ | TargetNeutrals_Off -> Target neutrals Off<br /> | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Ore Detector === |
+ | '''Interface name:''' IMyOreDetector<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' | + | '''Fields:''' <br /> |
+ | bool BroadcastUsingAntennas<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
− | OnOff_Off -> Toggle block Off | + | OnOff_Off -> Toggle block Off<br /> |
+ | BroadcastUsingAntennas -> Broadcast using antennas On/Off<br /> | ||
| | | | ||
− | |||
− | '''Interface name:''' | + | === Oxygen Farm === |
− | '''Parent:''' IMyFunctionalBlock<br /> | + | '''Interface name:''' IMyOxygenFarm<br /> |
− | '''Fields:''' | + | '''Parent: ''' IMyFunctionalBlock<br /> |
+ | '''Fields:''' none<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
− | OnOff_Off -> Toggle block Off | + | OnOff_Off -> Toggle block Off<br /> |
| | | | ||
− | |||
− | '''Interface name:''' | + | === Oxygen Generator === |
− | + | '''Interface name:''' IMyOxygenGenerator<br /> | |
− | |||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
− | bool | + | bool Auto-Refill<br /> |
− | |||
− | |||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | + | Refill -> Refill Bottles<br /> | |
− | + | Auto-Refill -> Auto-Refill On/Off<br /> | |
− | + | ||
− | + | |- style="vertical-align:top;" | |
− | |- | ||
| | | | ||
− | |||
− | + | === Oxygen/Hydrogen Tank === | |
+ | '''Interface name:''' IMyOxygenTank<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
− | + | bool Stockpile<br /> | |
− | bool | + | bool Auto-Refill<br /> |
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
− | OnOff_Off -> Toggle block Off | + | OnOff_Off -> Toggle block Off<br /> |
+ | Stockpile -> Stockpile On/Off<br /> | ||
+ | Stockpile_On -> Stockpile On<br /> | ||
+ | Stockpile_Off -> Stockpile Off<br /> | ||
+ | Refill -> Refill Bottles<br /> | ||
+ | Auto-Refill -> Auto-Refill On/Off<br /> | ||
| | | | ||
+ | |||
=== Passenger Seat === | === Passenger Seat === | ||
'''Interface name:''' IMyCockpit<br /> | '''Interface name:''' IMyCockpit<br /> | ||
'''Parent:''' IMyShipController<br /> | '''Parent:''' IMyShipController<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
bool ControlWheels<br /> | bool ControlWheels<br /> | ||
bool ControlThrusters<br /> | bool ControlThrusters<br /> | ||
Line 503: | Line 832: | ||
bool DampenersOverride | bool DampenersOverride | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
ControlThrusters -> Control thrusters On/Off<br /> | ControlThrusters -> Control thrusters On/Off<br /> | ||
ControlWheels -> Control wheels On/Off<br /> | ControlWheels -> Control wheels On/Off<br /> | ||
Line 509: | Line 838: | ||
DampenersOverride -> Inertia dampeners On/Off | DampenersOverride -> Inertia dampeners On/Off | ||
| | | | ||
+ | |||
=== Piston === | === Piston === | ||
'''Interface name:''' IMyPistonBase<br /> | '''Interface name:''' IMyPistonBase<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
+ | bool OnOff<br /> | ||
+ | bool ShowInTerminal<br /> | ||
+ | bool ShowInToolbarConfig<br /> | ||
+ | bool ShowOnHUD<br /> | ||
float Velocity <br /> | float Velocity <br /> | ||
− | float MinLimit <br /> | + | float MinLimit "LowerLimit"<br /> |
− | float MaxLimit | + | float MaxLimit "UpperLimit"<br /> |
+ | PistonStatus Status<br /> | ||
+ | float "Weld speed"<br /> | ||
+ | bool "Force weld"<br /><br /> | ||
+ | Strings to be used in methods like "bool GetValueBool(string propertyId)" | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
Reverse -> Reverse<br /> | Reverse -> Reverse<br /> | ||
+ | Extend -> Extend<br /> | ||
+ | Retract -> Retract<br /> | ||
IncreaseVelocity -> Increase Velocity<br /> | IncreaseVelocity -> Increase Velocity<br /> | ||
DecreaseVelocity -> Decrease Velocity<br /> | DecreaseVelocity -> Decrease Velocity<br /> | ||
Line 529: | Line 869: | ||
DecreaseUpperLimit -> Decrease Maximal distance<br /> | DecreaseUpperLimit -> Decrease Maximal distance<br /> | ||
IncreaseLowerLimit -> Increase Minimal distance<br /> | IncreaseLowerLimit -> Increase Minimal distance<br /> | ||
− | DecreaseLowerLimit -> Decrease Minimal distance | + | DecreaseLowerLimit -> Decrease Minimal distance<br /> |
− | |- | + | IncreaseWeld speed -> Increase Safety lock speed<br /> |
+ | DecreaseWeld speed -> Decrease Safety lock speed<br /> | ||
+ | IncreaseMaxImpulseAxis<br /> | ||
+ | DecreaseMaxImpulseAxis<br /> | ||
+ | IncreaseMaxImpulseNonAxis<br /> | ||
+ | DecreaseMaxImpulseNonAxis<br /> | ||
+ | Force weld -> Safety override lock On/Off<br /> | ||
+ | Force weld<br /> | ||
+ | IncreaseSafetyDetach<br /> | ||
+ | DecreaseSafetyDetach<br /> | ||
+ | ShareInertiaTensor<br /> | ||
+ | Add Top Part<br /> | ||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Programmable block === | === Programmable block === | ||
'''Interface name:''' IMyProgrammableBlock<br /> | '''Interface name:''' IMyProgrammableBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool IsRunning | + | '''Fields:''' <br /> bool IsRunning |
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | Run -> Run<br /> | ||
+ | RunWithDefaultArgument -> Run with default argument<br /> | ||
+ | | | ||
+ | |||
+ | === Projector === | ||
+ | |||
+ | '''Interface name:''' IMyProjector<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:''' <br /> | ||
+ | bool OnOff<br /> | ||
+ | bool ShowInTerminal<br /> | ||
+ | bool ShowInToolbarConfig<br /> | ||
+ | bool ShowOnHUD<br /> | ||
+ | bool KeepProjection<br /> | ||
+ | bool ShowOnlyBuildable<br /> | ||
+ | float X<br /> | ||
+ | float Y<br /> | ||
+ | float Z<br /> | ||
+ | float RotX<br /> | ||
+ | float RotY<br /> | ||
+ | float RotZ<br /> | ||
+ | bool InstantBuilding<br /> | ||
+ | bool GetOwnership<br /> | ||
+ | float NumberOfProjections<br /> | ||
+ | float NumberOfBlocks<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | KeepProjection -> Keep Projection On/Off<br /> | ||
+ | IncreaseX -> Increase horizontal offset<br /> | ||
+ | DecreaseX -> Decrease horizontal offset<br /> | ||
+ | IncreaseY -> Increase vertical offset<br /> | ||
+ | DecreaseY -> Decrease vertical offset<br /> | ||
+ | IncreaseZ -> Increase forward offset<br /> | ||
+ | DecreaseZ -> Decrease forward offset<br /> | ||
+ | IncreaseRotX -> Increase Pitch<br /> | ||
+ | DecreaseRotX -> Decrease Pitch<br /> | ||
+ | IncreaseRotY -> Increase Yaw<br /> | ||
+ | DecreaseRotY -> Decrease Yaw<br /> | ||
+ | IncreaseRotZ -> Increase Roll<br /> | ||
+ | DecreaseRotZ -> Decrease Roll<br /> | ||
+ | IncreaseScale<br /> | ||
+ | DecreaseScale<br /> | ||
+ | SpawnProjection -> Spawn projection<br /> | ||
+ | IncreaseFontSize<br /> | ||
+ | DecreaseFontSize<br /> | ||
+ | IncreaseTextPaddingSlider<br /> | ||
+ | DecreaseTextPaddingSlider<br /> | ||
+ | IncreaseChangeIntervalSlider<br /> | ||
+ | DecreaseChangeIntervalSlider<br /> | ||
+ | PreserveAspectRatio<br /> | ||
+ | | | ||
+ | |||
+ | === Reactor (Small, Large) === | ||
+ | |||
+ | '''Interface name:''' IMyReactor<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:''' <br /> bool UseConveyorSystem<br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | + | UseConveyor -> Use Conveyor System On/Off | |
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
− | === Refinery === | + | |
+ | === Refinery and Arc Furnace=== | ||
'''Interface name:''' IMyRefinery<br /> | '''Interface name:''' IMyRefinery<br /> | ||
+ | '''Parent:''' IMyProductionBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | ''' | + | '''Fields:''' <br /> bool UseConveyorSystem<br /> |
− | |||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | UseConveyor -> Use Conveyor System On/Off | + | UseConveyor -> Use Conveyor System On/Off<br /> |
| | | | ||
− | |||
− | '''Interface name:''' | + | === Reloadable Rocket Launcher === |
− | '''Parent:''' | + | |
+ | '''Interface name:''' IMySmallMissileLauncherReload<br /> | ||
+ | '''Parent:''' IMySmallMissileLauncherReload<br /> | ||
+ | '''Parent:''' IMySmallMissileLauncher<br /> | ||
+ | '''Parent:''' IMyUserControllableGun<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
'''Fields:'''<br /> | '''Fields:'''<br /> | ||
− | + | bool Shoot<br /> | |
− | |||
− | |||
− | |||
− | |||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
− | + | Off -> Toggle block On/Off<br /> | |
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | + | UseConveyor -> Use Conveyor System On/Off<br /> | |
− | + | ShootOnce -> Shoot once<br /> | |
− | + | Shoot -> Shoot On/Off<br /> | |
− | + | Shoot_On -> Shoot On<br /> | |
− | + | Shoot_Off -> Shoot Off<br /> | |
− | |||
− | |||
− | |||
− | |||
| | | | ||
+ | |||
=== Remote Control === | === Remote Control === | ||
'''Interface name:''' IMyRemoteControl<br /> | '''Interface name:''' IMyRemoteControl<br /> | ||
'''Parent:''' IMyShipController<br /> | '''Parent:''' IMyShipController<br /> | ||
− | '''Fields:''' | + | '''Fields:''' <br /> |
− | |||
− | |||
− | |||
bool ControlThrusters<br /> | bool ControlThrusters<br /> | ||
bool ControlWheels<br /> | bool ControlWheels<br /> | ||
Line 601: | Line 1,015: | ||
bool DockingMode<br /> | bool DockingMode<br /> | ||
− | + | '''Actions:'''<br /> | |
− | '''Actions'''<br /> | ||
ControlThrusters -> Control thrusters On/Off<br /> | ControlThrusters -> Control thrusters On/Off<br /> | ||
ControlWheels -> Control wheels On/Off<br /> | ControlWheels -> Control wheels On/Off<br /> | ||
HandBrake -> Handbrake On/Off<br /> | HandBrake -> Handbrake On/Off<br /> | ||
DampenersOverride -> Inertia dampeners On/Off<br /> | DampenersOverride -> Inertia dampeners On/Off<br /> | ||
− | |||
MainCockpit -> Main cockpit On/Off<br /> | MainCockpit -> Main cockpit On/Off<br /> | ||
− | |||
AutoPilot -> Autopilot On/Off<br /> | AutoPilot -> Autopilot On/Off<br /> | ||
AutoPilot_On -> Autopilot On<br /> | AutoPilot_On -> Autopilot On<br /> | ||
Line 615: | Line 1,026: | ||
CollisionAvoidance -> Collision avoidance On/Off<br /> | CollisionAvoidance -> Collision avoidance On/Off<br /> | ||
CollisionAvoidance_On -> Collision avoidance On<br /> | CollisionAvoidance_On -> Collision avoidance On<br /> | ||
− | + | CollisionAvoicance_Off -> Collision avoidance Off<br /> | |
− | DockingMode -> Precision | + | DockingMode -> Precision mode On/Off<br /> |
− | DockingMode_On -> Precision | + | DockingMode_On -> Precision mode On<br /> |
− | DockingMode_Off -> Precision | + | DockingMode_Off -> Precision mode Off<br /> |
− | Forward -> | + | Forward -> Set front part of remote control as reference for autopilot<br /> |
− | Backward -> | + | Backward -> Set rear part of remote control as reference for autopilot<br /> |
− | Left -> | + | Left -> Set left part of remote control as reference for autopilot<br /> |
− | Right -> | + | Right -> Set right part of remote control as reference for autopilot<br /> |
− | Up -> | + | Up -> Set top part of remote control as reference for autopilot<br /> |
− | Down -> | + | Down -> Set bottom part of remote control as reference for autopilot<br /> |
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Rocket Launcher === | === Rocket Launcher === | ||
'''Interface name:''' IMySmallMissileLauncher<br /> | '''Interface name:''' IMySmallMissileLauncher<br /> | ||
+ | '''Parent:''' IMyUserControllableGun<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:''' bool | + | '''Fields:''' <br /> |
+ | bool Shoot<br />s | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
− | + | Off -> Toggle block On/Off<br /> | |
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
OnOff_Off -> Toggle block Off<br /> | OnOff_Off -> Toggle block Off<br /> | ||
− | UseConveyor -> Use Conveyor System On/Off | + | UseConveyor -> Use Conveyor System On/Off<br /> |
+ | ShootOnce -> Shoot once<br /> | ||
+ | Shoot -> Shoot On/Off<br /> | ||
+ | Shoot_On -> Shoot On<br /> | ||
+ | Shoot_Off -> Shoot Off<br /> | ||
| | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Rotor === | === Rotor === | ||
Line 656: | Line 1,064: | ||
'''Parent:''' IMyMotorBase<br /> | '''Parent:''' IMyMotorBase<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
bool IsAttached <br /> | bool IsAttached <br /> | ||
float Torque<br /> | float Torque<br /> | ||
Line 665: | Line 1,073: | ||
float Displacement | float Displacement | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 686: | Line 1,094: | ||
DecreaseDisplacement -> Decrease Rotor displacement | DecreaseDisplacement -> Decrease Rotor displacement | ||
| | | | ||
+ | |||
=== Sensor === | === Sensor === | ||
'''Interface name:''' IMySensorBlock<br /> | '''Interface name:''' IMySensorBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
float LeftExtend <br /> | float LeftExtend <br /> | ||
float RightExtend <br /> | float RightExtend <br /> | ||
Line 702: | Line 1,111: | ||
bool DetectLargeShips <br /> | bool DetectLargeShips <br /> | ||
bool DetectStations <br /> | bool DetectStations <br /> | ||
− | bool DetectAsteroids | + | bool DetectAsteroids <br /> |
+ | bool IsActive <br /> | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 725: | Line 1,135: | ||
Detect Large Ships -> Detect large ships On/Off<br /> | Detect Large Ships -> Detect large ships On/Off<br /> | ||
Detect Stations -> Detect stations On/Off<br /> | Detect Stations -> Detect stations On/Off<br /> | ||
− | Detect Asteroids -> Detect Asteroids On/Off | + | Detect Asteroids -> Detect Asteroids On/Off<br /> |
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Solar Panel === | === Solar Panel === | ||
'''Interface name:''' IMySolarPanel<br /> | '''Interface name:''' IMySolarPanel<br /> | ||
− | '''Fields:''' | + | '''Fields:''' none<br /> |
− | '''Actions:''' | + | '''Actions:''' none<br /> |
− | |||
| | | | ||
+ | |||
=== Sound Block === | === Sound Block === | ||
'''Interface name:''' IMySoundBlock<br /> | '''Interface name:''' IMySoundBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
float Volume <br /> | float Volume <br /> | ||
float Range <br /> | float Range <br /> | ||
Line 744: | Line 1,157: | ||
float LoopPeriod | float LoopPeriod | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 757: | Line 1,170: | ||
DecreaseLoopableSlider -> Decrease Loop time | DecreaseLoopableSlider -> Decrease Loop time | ||
| | | | ||
+ | |||
+ | === Space Balls === | ||
+ | '''Interface name:''' IMySpaceball<br /> | ||
+ | '''Parent:''' IMyVirtualMass<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:'''<br /> | ||
+ | float VirtualMass<br /> | ||
+ | bool EnableBroadCast<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | IncreaseVirtualMass -> Increase Virtual Mass<br /> | ||
+ | DecreaseVirtualMass -> Decrease Virtual Mass<br /> | ||
+ | EnableBroadCast -> Enable broadcasting On/Off<br /> | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | | ||
+ | |||
=== Spherical Gravity Generator === | === Spherical Gravity Generator === | ||
Line 762: | Line 1,195: | ||
'''Parent:''' IMyGravityGeneratorBase<br /> | '''Parent:''' IMyGravityGeneratorBase<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
float Radius <br /> | float Radius <br /> | ||
− | float Gravity | + | float Gravity <br /> |
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 773: | Line 1,206: | ||
DecreaseRadius -> Decrease Radius<br /> | DecreaseRadius -> Decrease Radius<br /> | ||
IncreaseGravity -> Increase Acceleration<br /> | IncreaseGravity -> Increase Acceleration<br /> | ||
− | DecreaseGravity -> Decrease Acceleration | + | DecreaseGravity -> Decrease Acceleration<br /> |
| | | | ||
+ | |||
+ | === Spotlight === | ||
+ | |||
+ | '''Interface name:''' IMyReflectorLight<br /> | ||
+ | '''Parent:''' IMyLightingBlock<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:''' <br /> | ||
+ | float Radius<br /> | ||
+ | float Intensity<br /> | ||
+ | float BlinkIntervalSeconds<br /> | ||
+ | float BlinkLenght<br /> | ||
+ | float BlinkOffset | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | IncreaseRadius -> Increase Radius<br /> | ||
+ | DecreaseRadius -> Decrease Radius<br /> | ||
+ | IncreaseBlink Interval -> Increase Blink Interval<br /> | ||
+ | DecreaseBlink Interval -> Decrease Blink Interval<br /> | ||
+ | IncreaseBlink Lenght -> Increase Blink Length<br /> | ||
+ | DecreaseBlink Lenght -> Decrease Blink Length<br /> | ||
+ | IncreaseBlink Offset -> Increase Blink Offset<br /> | ||
+ | DecreaseBlink Offset -> Decrease Blink Offset<br /> | ||
+ | | | ||
+ | |||
+ | === Text Panel, LCD, Wide LCD === | ||
+ | |||
+ | '''Interface name:''' IMyTextPanel<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:''' <br /> | ||
+ | float FontSize<br /> | ||
+ | String FontColor<br /> | ||
+ | String BackgroundColor<br /> | ||
+ | float ChangeIntervalSlider<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | IncreaseFontSize -> Increase Font Size<br /> | ||
+ | DecreaseFontSize -> Decrease Font Size<br /> | ||
+ | IncreaseChangeIntervalSlider -> Increase Image change interval<br /> | ||
+ | DecreaseChangeIntervalSlider -> Decrease Image change interval<br /> | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | | ||
+ | |||
+ | === Thruster (Ion, Hydrogen, Atmospheric) === | ||
+ | '''Interface name:''' IMyThrust<br /> | ||
+ | '''Parent:''' IMyFunctionalBlock<br /> | ||
+ | '''Fields:'''<br /> | ||
+ | float Override<br /> | ||
+ | |||
+ | '''Actions:'''<br /> | ||
+ | OnOff -> Toggle block On/Off<br /> | ||
+ | OnOff_On -> Toggle block On<br /> | ||
+ | OnOff_Off -> Toggle block Off<br /> | ||
+ | IncreaseOverride -> Increase thrust override<br /> | ||
+ | DecreaseOverride -> Decrease thrust override<br /> | ||
+ | | | ||
+ | |||
=== Timer Block === | === Timer Block === | ||
'''Interface name:''' IMyTimerBlock<br /> | '''Interface name:''' IMyTimerBlock<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
bool IsCountingDown <br /> | bool IsCountingDown <br /> | ||
float TriggerDelay | float TriggerDelay | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 791: | Line 1,287: | ||
TriggerNow -> Trigger now<br /> | TriggerNow -> Trigger now<br /> | ||
Start -> Start<br /> | Start -> Start<br /> | ||
− | Stop -> Stop | + | Stop -> Stop<br /> |
− | |||
| | | | ||
+ | |||
=== Warhead === | === Warhead === | ||
'''Interface name:''' IMyWarhead<br /> | '''Interface name:''' IMyWarhead<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
bool IsCountingDown <br /> | bool IsCountingDown <br /> | ||
float DetonationTime | float DetonationTime | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
IncreaseDetonationTime -> Increase Detonation time<br /> | IncreaseDetonationTime -> Increase Detonation time<br /> | ||
DecreaseDetonationTime -> Decrease Detonation time<br /> | DecreaseDetonationTime -> Decrease Detonation time<br /> | ||
Line 808: | Line 1,304: | ||
Safety -> Safety On/Off<br /> | Safety -> Safety On/Off<br /> | ||
Detonate -> Detonate | Detonate -> Detonate | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
| | | | ||
+ | |||
=== Welder === | === Welder === | ||
Line 815: | Line 1,314: | ||
'''Parent:''' IMyFunctionalBlock | '''Parent:''' IMyFunctionalBlock | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 821: | Line 1,320: | ||
UseConveyor -> Use Conveyor System On/Off | UseConveyor -> Use Conveyor System On/Off | ||
| | | | ||
− | === Wheel Suspension 1x1 === | + | |
+ | === Wheel Suspension (1x1, 3x3, 5x5) === | ||
'''Interface name:''' IMyMotorSuspension<br /> | '''Interface name:''' IMyMotorSuspension<br /> | ||
'''Parent:''' IMyMotorBase<br /> | '''Parent:''' IMyMotorBase<br /> | ||
'''Parent:''' IMyFunctionalBlock<br /> | '''Parent:''' IMyFunctionalBlock<br /> | ||
− | '''Fields:'''<br /> | + | '''Fields:''' <br /> |
bool Steering <br /> | bool Steering <br /> | ||
bool Propulsion <br /> | bool Propulsion <br /> | ||
Line 834: | Line 1,334: | ||
float Power | float Power | ||
− | '''Actions'''<br /> | + | '''Actions:'''<br /> |
OnOff -> Toggle block On/Off<br /> | OnOff -> Toggle block On/Off<br /> | ||
OnOff_On -> Toggle block On<br /> | OnOff_On -> Toggle block On<br /> | ||
Line 848: | Line 1,348: | ||
IncreasePower -> Increase Power<br /> | IncreasePower -> Increase Power<br /> | ||
DecreasePower -> Decrease Power | DecreasePower -> Decrease Power | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | == Terminal Action and Property List == | ||
+ | |||
+ | All terminal blocks have terminal actions and properties. Sub-interfaces share their parent interface's terminal actions and properties. Therefore, as IMyTerminalBlock has OnOff action, all blocks also have it. To save space, any content a parent interface has will NOT be listed in the sub-interfaces. | ||
+ | |||
+ | The tables in this wiki page had been redone (06/28/2020) to better display the information needed. The tables will show the fields and methods that have the same purposes as the terminal properties and actions. notice that not all fields or methods will be shown, only those which have terminal functions will be. | ||
+ | |||
+ | In the tables listed below, some properties will be displayed (not to confuse with terminal properties): | ||
+ | |||
+ | '''Interface Name:''' the name of the interface in the ingame scripting API. | ||
+ | |||
+ | '''Terminal Action:''' the names of terminal actions and their descrptions. | ||
+ | |||
+ | '''Method:''' the methods in the interface API that do the same thing as terminal actions. It is recommanded to use interface methods. | ||
+ | |||
+ | '''Terminal Property:''' the names of terminal properties. | ||
+ | |||
+ | '''Field:''' the fields in the interface API that do the same thing as terminal properties. It is recommanded to use interface fields. | ||
+ | |||
+ | === IMyTerminalBlock === | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Actions | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Toggle Show on HUD On/Off | ||
+ | |<pre>"ShowOnHUD"</pre> | ||
+ | |rowspan="3"|<pre></pre> | ||
+ | |rowspan="3"|<pre>bool "ShowOnHUD"</pre> | ||
+ | |rowspan="3"|<pre>bool ShowOnHUD {get; set;}</pre> | ||
+ | |- | ||
+ | |Show on HUD On | ||
+ | |<pre>"ShowOnHUD_On"</pre> | ||
+ | |- | ||
+ | |Show on HUD On | ||
+ | |<pre>"ShowOnHUD_Off"</pre> | ||
+ | |- | ||
+ | |Name | ||
+ | |<pre></pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>StringBuilder "Name"</pre> | ||
+ | |<pre>string Name {get;}</pre> | ||
+ | |- | ||
+ | |Show in Inventory | ||
+ | |<pre></pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>bool "ShowInInventory"</pre> | ||
+ | |<pre>bool ShowInInventory {get; set;}</pre> | ||
+ | |- | ||
+ | |Show in Terminal | ||
+ | |<pre></pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>bool "ShowInTerminal"</pre> | ||
+ | |<pre>bool ShowInTerminal {get; set;}</pre> | ||
+ | |- | ||
+ | |Show in Toolbar Config | ||
+ | |<pre></pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>bool "ShowInToolbarConfig"</pre> | ||
+ | |<pre>bool ShowInToolbarConfig {get; set;}</pre> | ||
+ | |} | ||
+ | |||
+ | ==== IMyCargoContainer ==== | ||
+ | |||
+ | Cargo Container does not have it's own members except those inherited from IMyTerminalBlock. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |} | ||
+ | |||
+ | ==== IMyFunctionalBlock ==== | ||
+ | |||
+ | IMyFunctionalBlock is the parent of most terminal blocks. It can be turned on and off. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Toggle Block On/Off | ||
+ | |<pre>"OnOff"</pre> | ||
+ | |rowspan="3"|<pre>void RequestEnable(bool enable) Obsolete: Use the setter of Enabled</pre> | ||
+ | |rowspan="3"|<pre>bool "OnOff"</pre> | ||
+ | |rowspan="3"|<pre>bool Enabled {get; set;}</pre> | ||
+ | |- | ||
+ | |Toggle Block On | ||
+ | |<pre>"OnOff_ON"</pre> | ||
+ | |- | ||
+ | |Toggle Block Off | ||
+ | |<pre>"OnOff_Off"</pre> | ||
+ | |} | ||
+ | |||
+ | ===== IMyAirVent ===== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Toggle Depressurize On/Off | ||
+ | |<pre>"Depressurize"</pre> | ||
+ | |rowspan="3"|<pre></pre> | ||
+ | |rowspan="3"|<pre>bool "Depressurize"</pre> | ||
+ | |rowspan="3"|<pre>bool Depressurize {get; set;}</pre> | ||
+ | |- | ||
+ | |Depressurize On | ||
+ | |<pre>"Depressurize_On"</pre> | ||
+ | |- | ||
+ | |Depressurize Off | ||
+ | |<pre>"Depressurize_Off"</pre> | ||
+ | |} | ||
+ | |||
+ | ===== IMyAritificialMassBlock ===== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ===== IMyBatteryBlock ===== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Enable Auto | ||
+ | |<pre>"Auto"</pre> | ||
+ | |rowspan="3"|<pre></pre> | ||
+ | |rowspan="3"|<pre>long "ChargeMode"</pre> | ||
+ | |<pre>ChargeMode ChargeMode {get; set;}</pre> | ||
+ | |- | ||
+ | |Toggle Recharge On/Off | ||
+ | |<pre>"Recharge"</pre> | ||
+ | |<pre>bool OnlyRecharge {get; set;} Obsolete: Use ChargeMode instead</pre> | ||
+ | |- | ||
+ | |Toggle Discharge On/Off | ||
+ | |<pre>"Discharge"</pre> | ||
+ | |<pre>bool OnlyDischarge {get; set;} Obsolete: Use ChargeMode instead</pre> | ||
+ | |} | ||
+ | |||
+ | ===== IMyBeacon ===== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Increase Broadcast Radius | ||
+ | |<pre>"IncreaseRadius"</pre> | ||
+ | |rowspan="2"|<pre></pre> | ||
+ | |rowspan="2"|<pre>float "Radius"</pre> | ||
+ | |rowspan="2"|<pre>float Radius {get; set;}</pre> | ||
+ | |- | ||
+ | |Decrease Broadcast Radius | ||
+ | |<pre>"DecreaseRadius"</pre> | ||
+ | |- | ||
+ | |Text Show On HUD | ||
+ | |<pre></pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>StringBuilder "HudText"</pre> | ||
+ | |<pre>string HudText {get; set;}</pre> | ||
+ | |} | ||
+ | |||
+ | ===== IMyDoor ===== | ||
+ | |||
+ | There are different types of doors. They have similar behaviors. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Toggle Anyone Can Use On/Off | ||
+ | |<pre>"AnyoneCanUse"</pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>bool "AnyoneCanUse"</pre> | ||
+ | |<pre></pre> | ||
+ | |- | ||
+ | |Toggle Door Open/Closed | ||
+ | |<pre>"Open"</pre> | ||
+ | |<pre>void ToggleDoor()</pre> | ||
+ | |rowspan="3"|<pre>bool "Open"</pre> | ||
+ | |rowspan="3"| | ||
+ | bool Open {get;} Obsolete: Use the Status instead | ||
+ | DoorStatus Status {get;} | ||
+ | |- | ||
+ | |Open Door | ||
+ | |<pre>"Open_On"</pre> | ||
+ | |<pre>void OpenDoor()</pre> | ||
+ | |- | ||
+ | |Close Door | ||
+ | |<pre>"Open_Off"</pre> | ||
+ | |<pre>void CloseDoor()</pre> | ||
+ | |} | ||
+ | |||
+ | ====== IMyAdvancedDoor ====== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ====== IMyAirtightHangarDoor ====== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ====== IMyAirtightSlideDoor ====== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ===== IMyProductionBlock ===== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
|- | |- | ||
− | | | + | |Toggle Use Conveyor System On/Off |
− | === | + | |<pre>"UseConveyor"</pre> |
+ | |<pre></pre> | ||
+ | |<pre>bool "UseConveyor"</pre> | ||
+ | |<pre>bool UseConveyorSystem {get; set;}</pre> | ||
+ | |} | ||
+ | |||
+ | ====== IMyAssembler ====== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |Description | ||
+ | |Terminal Action | ||
+ | |Method | ||
+ | |Terminal Property | ||
+ | |Field | ||
+ | |- | ||
+ | |Cooperative Mode On/Off | ||
+ | |<pre>"slaveMode"</pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>bool "slaveMode"</pre> | ||
+ | |<pre>bool CooperativeMode {get; set;}</pre> | ||
+ | |} | ||
− | + | ====== IMyRefinery ====== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {| class="wikitable" | |
− | + | |Description | |
− | + | |Terminal Action | |
− | + | |Method | |
− | + | |Terminal Property | |
− | + | |Field | |
− | + | |- | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | + | ==== IMyWarhead ==== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {| class="wikitable" | |
− | + | |Description | |
− | + | |Terminal Action | |
− | + | |Method | |
− | + | |Terminal Property | |
− | + | |Field | |
− | + | |- | |
− | + | |Increase Detonation Time | |
− | + | |<pre>"IncreaseDetonationTime"</pre> | |
− | + | |rowspan="2"|<pre></pre> | |
− | + | |rowspan="2"|<pre>float "DetonationTime"</pre> | |
− | + | |rowspan="2"|<pre>float DetonationTime {get; set;}</pre> | |
− | + | |- | |
− | + | |Decrease Detonation Time | |
− | | | + | |<pre>"DecreaseDetonationTime"</pre> |
+ | |- | ||
+ | |Detonate | ||
+ | |<pre>"Detonate"</pre> | ||
+ | |<pre>void Detonate()</pre> | ||
+ | |<pre></pre> | ||
+ | |<pre></pre> | ||
+ | |- | ||
+ | |Toggle Arm Warhead On/Off | ||
+ | |<pre>"Safety"</pre> | ||
+ | |<pre></pre> | ||
+ | |<pre>bool "Safety"</pre> | ||
+ | |<pre>bool IsArmed {get; set;}</pre> | ||
+ | |- | ||
+ | |Start Countdown | ||
+ | |<pre>"StartCountdown"</pre> | ||
+ | |<pre>bool StartCountdown()</pre> | ||
+ | |rowspan="2"|<pre></pre> | ||
+ | |rowspan="2"|<pre>bool IsCountingDown {get;}</pre> | ||
+ | |- | ||
+ | |Stop Countdown | ||
+ | |<pre>"StopCountdown</pre> | ||
+ | |<pre>bool StopCountdown()</pre> | ||
|} | |} | ||
− |
Latest revision as of 20:29, 22 February 2021
Contents
- 1 Invoking Terminal Actions and Properties
- 2 Terminal Action List (Old)
- 2.1 Air Vent
- 2.2 Advanced Rotor
- 2.3 Antenna
- 2.4 Artificial Mass
- 2.5 Assembler
- 2.6 Battery
- 2.7 Beacon
- 2.8 Button Panel
- 2.9 Camera
- 2.10 Cargo Containers
- 2.11 Cockpit, Control Station, Flight Seat
- 2.12 Collector
- 2.13 Connector
- 2.14 Control Panel
- 2.15 Conveyor Sorter
- 2.16 Door
- 2.17 Drill
- 2.18 Gatling Gun
- 2.19 Gatling Turret
- 2.20 Gravity Generator
- 2.21 Grinder
- 2.22 Gyroscope
- 2.23 Interior Light
- 2.24 Interior Turret
- 2.25 Jump Drive
- 2.26 Landing Gear
- 2.27 Laser Antenna
- 2.28 Medical Room
- 2.29 Merge Block
- 2.30 Missile Turret
- 2.31 Ore Detector
- 2.32 Oxygen Farm
- 2.33 Oxygen Generator
- 2.34 Oxygen/Hydrogen Tank
- 2.35 Passenger Seat
- 2.36 Piston
- 2.37 Programmable block
- 2.38 Projector
- 2.39 Reactor (Small, Large)
- 2.40 Refinery and Arc Furnace
- 2.41 Reloadable Rocket Launcher
- 2.42 Remote Control
- 2.43 Rocket Launcher
- 2.44 Rotor
- 2.45 Sensor
- 2.46 Solar Panel
- 2.47 Sound Block
- 2.48 Space Balls
- 2.49 Spherical Gravity Generator
- 2.50 Spotlight
- 2.51 Text Panel, LCD, Wide LCD
- 2.52 Thruster (Ion, Hydrogen, Atmospheric)
- 2.53 Timer Block
- 2.54 Warhead
- 2.55 Welder
- 2.56 Wheel Suspension (1x1, 3x3, 5x5)
- 3 Terminal Action and Property List
🚧🚧🚧 Under Construction 🚧🚧🚧 |
---|
Attention - This page is currently being actively worked on, and may contain incomplete information
|
In addition to interface methods and properties given in the interface API, the in-game programming also provides terminal actions and terminal properties. Those terminal actions and properties behave like the options in the terminal system ingame that players can interact with.
Notice that terminal actions and properties should be obsolete, because the most block interfaces now provide API methods and properties that users can invoke.
Invoking Terminal Actions and Properties
The In-game Programming system provides methods for users to invoke the terminal properties, with a string parameter determining the name of the terminal action or property needed. Those methods belong to the IMyTerminalBlock interface. While all terminal blocks (Reactor, for example) are the sub-types of IMyTerminalBlock, they all have the methods. However, if the string parameter asks for the terminal action or property which does not exist in the given block, a NullReferenceException will be thrown[1].
In the programming namespace, the terminal actions are accessed as ITerminalAction interface and the terminal properties are ITerminalProperty.
Terminal Actions
To make the block apply action, call
block.ApplyAction(string actionName)
For example:
// Turn off a light IMyInterior light; // codes that you assign the actual light you want to turn off. light.ApplyAction("OnOff_Off"); // turn off the light
Terminal Properties
To access the terminal properties, two methods are provided. Unlike the action method above, those property methods are generic, which means a extra type parameter is needed when calling the methods.
To get a property of a block, call
block.GetValue<T>(string propertyName)
For example:
// Get the color of a light IMyInteriorLight light; // codes that you assign the actual light you want to get color from. Color color = light.GetValue<Color>("Color"); // get color
To set a property of a block, call
block.SetValue<T>(string propertyName, T property)
For example:
// Set the color of a light Color color = new Color(50, 100, 200); // create a new color IMyInteriorLight light; // codes that you assign the actual light you want to set color light.SetValue<Color>("Color", color); // set color
Terminal Action List (Old)
All terminal blocks have the following properties:
Interface name: this name is the name of the block in code, it can differ from the name as displayed in the building screen. E.g. Antenna interface name is IMyRadioAntenna - you need to use this interface if you want to get all antennas.
Parent: this is parent of the block (all blocks have IMyTerminalBlock as parent), this can be used for getting type of blocks instead of concrete block type. E.g. if you want to get all lights in grid you will use IMyLightingBlock, if you want only interior light you can use IMyInteriorLight.
Field: this is read only field available for block e.g. for IMyBeacon you can get Radius property. Based on this property you can increase/decrease radius of beacon.
Actions: these are all available actions for block with their names in game, so if you want to increase broadcast radius for antenna, you need to execute IncreaseRadius action for block.
Air VentInterface name: IMyAirVent Actions: |
Advanced RotorInterface name: IMyMotorAdvancedStator Actions: |
AntennaInterface name: IMyRadioAntenna Actions:
|
Artificial MassInterface name: IMyVirtualMass Actions: |
AssemblerInterface name: IMyAssembler Actions: |
BatteryInterface name: IMyBatteryBlock Actions: |
BeaconInterface name: IMyBeacon Actions: |
Button PanelInterface name: IMyButtonPanel Actions: |
CameraInterface name: IMyCameraBlock Actions: |
Cargo ContainersInterface name: IMyCargoContainer Actions: none |
Cockpit, Control Station, Flight SeatInterface name: IMyCockpit Actions: |
CollectorInterface name: IMyCollector Actions: |
ConnectorInterface name: IMyShipConnector Actions: |
Control PanelInterface name: IMyControlPanel |
Conveyor SorterInterface name: IMyConveyorSorter Actions: |
DoorInterface name: IMyDoor Actions: |
DrillInterface name: IMyShipDrill Actions: |
Gatling GunInterface name: IMySmallGatlingGun Actions: |
Gatling TurretInterface name: IMyLargeGatlingTurret Actions: |
Gravity GeneratorInterface name: IMyGravityGenerator Actions: |
GrinderInterface name: IMyShipGrinder Actions: |
GyroscopeInterface name: IMyGyro Actions: |
Interior LightInterface name: IMyInteriorLight Actions: |
Interior TurretInterface name: IMyLargeInteriorTurret Actions: |
Jump DriveInterface name: IMyJumpDrive Actions: |
Landing GearInterface name: IMyLandingGear Actions: |
Laser AntennaInterface name: IMyLaserAntenna Actions: |
Medical RoomInterface name: IMyMedicalRoom |
Merge BlockInterface name: IMyShipMergeBlock Actions: |
Missile TurretInterface name: IMyMissileTurret Actions: |
Ore DetectorInterface name: IMyOreDetector Actions: |
Oxygen FarmInterface name: IMyOxygenFarm Actions: |
Oxygen GeneratorInterface name: IMyOxygenGenerator Actions: |
Oxygen/Hydrogen TankInterface name: IMyOxygenTank Actions: |
Passenger SeatInterface name: IMyCockpit Actions: |
PistonInterface name: IMyPistonBase Actions: |
Programmable blockInterface name: IMyProgrammableBlock Actions: |
ProjectorInterface name: IMyProjector Actions: |
Reactor (Small, Large)Interface name: IMyReactor Actions: |
Refinery and Arc FurnaceInterface name: IMyRefinery Actions: |
Reloadable Rocket LauncherInterface name: IMySmallMissileLauncherReload Actions: |
Remote ControlInterface name: IMyRemoteControl Actions: |
Rocket LauncherInterface name: IMySmallMissileLauncher Actions: |
RotorInterface name: IMyMotorStator Actions: |
SensorInterface name: IMySensorBlock Actions: |
Solar PanelInterface name: IMySolarPanel |
Sound BlockInterface name: IMySoundBlock Actions: |
Space BallsInterface name: IMySpaceball Actions: |
Spherical Gravity GeneratorInterface name: IMyGravityGeneratorSphere Actions: |
SpotlightInterface name: IMyReflectorLight Actions: |
Text Panel, LCD, Wide LCDInterface name: IMyTextPanel Actions: |
Thruster (Ion, Hydrogen, Atmospheric)Interface name: IMyThrust Actions: |
Timer BlockInterface name: IMyTimerBlock Actions: |
WarheadInterface name: IMyWarhead Actions: |
WelderInterface name: IMyShipWelder Actions: |
Wheel Suspension (1x1, 3x3, 5x5)Interface name: IMyMotorSuspension Actions: |
Terminal Action and Property List
All terminal blocks have terminal actions and properties. Sub-interfaces share their parent interface's terminal actions and properties. Therefore, as IMyTerminalBlock has OnOff action, all blocks also have it. To save space, any content a parent interface has will NOT be listed in the sub-interfaces.
The tables in this wiki page had been redone (06/28/2020) to better display the information needed. The tables will show the fields and methods that have the same purposes as the terminal properties and actions. notice that not all fields or methods will be shown, only those which have terminal functions will be.
In the tables listed below, some properties will be displayed (not to confuse with terminal properties):
Interface Name: the name of the interface in the ingame scripting API.
Terminal Action: the names of terminal actions and their descrptions.
Method: the methods in the interface API that do the same thing as terminal actions. It is recommanded to use interface methods.
Terminal Property: the names of terminal properties.
Field: the fields in the interface API that do the same thing as terminal properties. It is recommanded to use interface fields.
IMyTerminalBlock
Description | Terminal Actions | Method | Terminal Property | Field |
Toggle Show on HUD On/Off | "ShowOnHUD" |
bool "ShowOnHUD" |
bool ShowOnHUD {get; set;} | |
Show on HUD On | "ShowOnHUD_On" | |||
Show on HUD On | "ShowOnHUD_Off" | |||
Name | StringBuilder "Name" |
string Name {get;} | ||
Show in Inventory | bool "ShowInInventory" |
bool ShowInInventory {get; set;} | ||
Show in Terminal | bool "ShowInTerminal" |
bool ShowInTerminal {get; set;} | ||
Show in Toolbar Config | bool "ShowInToolbarConfig" |
bool ShowInToolbarConfig {get; set;} |
IMyCargoContainer
Cargo Container does not have it's own members except those inherited from IMyTerminalBlock.
Description | Terminal Action | Method | Terminal Property | Field |
IMyFunctionalBlock
IMyFunctionalBlock is the parent of most terminal blocks. It can be turned on and off.
Description | Terminal Action | Method | Terminal Property | Field |
Toggle Block On/Off | "OnOff" |
void RequestEnable(bool enable) Obsolete: Use the setter of Enabled |
bool "OnOff" |
bool Enabled {get; set;} |
Toggle Block On | "OnOff_ON" | |||
Toggle Block Off | "OnOff_Off" |
IMyAirVent
Description | Terminal Action | Method | Terminal Property | Field |
Toggle Depressurize On/Off | "Depressurize" |
bool "Depressurize" |
bool Depressurize {get; set;} | |
Depressurize On | "Depressurize_On" | |||
Depressurize Off | "Depressurize_Off" |
IMyAritificialMassBlock
Description | Terminal Action | Method | Terminal Property | Field |
IMyBatteryBlock
Description | Terminal Action | Method | Terminal Property | Field |
Enable Auto | "Auto" |
long "ChargeMode" |
ChargeMode ChargeMode {get; set;} | |
Toggle Recharge On/Off | "Recharge" |
bool OnlyRecharge {get; set;} Obsolete: Use ChargeMode instead | ||
Toggle Discharge On/Off | "Discharge" |
bool OnlyDischarge {get; set;} Obsolete: Use ChargeMode instead |
IMyBeacon
Description | Terminal Action | Method | Terminal Property | Field |
Increase Broadcast Radius | "IncreaseRadius" |
float "Radius" |
float Radius {get; set;} | |
Decrease Broadcast Radius | "DecreaseRadius" | |||
Text Show On HUD | StringBuilder "HudText" |
string HudText {get; set;} |
IMyDoor
There are different types of doors. They have similar behaviors.
Description | Terminal Action | Method | Terminal Property | Field |
Toggle Anyone Can Use On/Off | "AnyoneCanUse" |
bool "AnyoneCanUse" |
||
Toggle Door Open/Closed | "Open" |
void ToggleDoor() |
bool "Open" |
bool Open {get;} Obsolete: Use the Status instead DoorStatus Status {get;} |
Open Door | "Open_On" |
void OpenDoor() | ||
Close Door | "Open_Off" |
void CloseDoor() |
IMyAdvancedDoor
Description | Terminal Action | Method | Terminal Property | Field |
IMyAirtightHangarDoor
Description | Terminal Action | Method | Terminal Property | Field |
IMyAirtightSlideDoor
Description | Terminal Action | Method | Terminal Property | Field |
IMyProductionBlock
Description | Terminal Action | Method | Terminal Property | Field |
Toggle Use Conveyor System On/Off | "UseConveyor" |
bool "UseConveyor" |
bool UseConveyorSystem {get; set;} |
IMyAssembler
Description | Terminal Action | Method | Terminal Property | Field |
Cooperative Mode On/Off | "slaveMode" |
bool "slaveMode" |
bool CooperativeMode {get; set;} |
IMyRefinery
Description | Terminal Action | Method | Terminal Property | Field |
IMyWarhead
Description | Terminal Action | Method | Terminal Property | Field |
Increase Detonation Time | "IncreaseDetonationTime" |
float "DetonationTime" |
float DetonationTime {get; set;} | |
Decrease Detonation Time | "DecreaseDetonationTime" | |||
Detonate | "Detonate" |
void Detonate() |
||
Toggle Arm Warhead On/Off | "Safety" |
bool "Safety" |
bool IsArmed {get; set;} | |
Start Countdown | "StartCountdown" |
bool StartCountdown() |
bool IsCountingDown {get;} | |
Stop Countdown | "StopCountdown |
bool StopCountdown() |