Show / Hide Table of Contents

Interface IMySensorBlock

Describes sensor block (PB scripting interface)

Inherited Members
IMyFunctionalBlock.RequestEnable(Boolean)
IMyFunctionalBlock.Enabled
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 IMySensorBlock : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity

Properties

BackExtend

Gets or sets the back range of the sensor.

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

BottomExtend

Gets or sets the bottom range of the sensor.

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

DetectAsteroids

Gets or sets if the sensor should detect asteroids or planets.

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

DetectEnemy

Gets or sets if the sensor should detect enemy players.

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

Requires DetectPlayers set to true.

DetectFloatingObjects

Gets or sets if the sensor should detect floating objects (components, rocks).

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

DetectFriendly

Gets or sets if the sensor should detect friendly players.

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

Requires DetectPlayers set to true.

DetectLargeShips

Gets or sets if the sensor should detect large ships.

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

DetectNeutral

Gets or sets if the sensor should detect neutral players.

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

Requires DetectPlayers set to true.

DetectOwner

Gets or sets if the sensor should detect the block owner.

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

Requires DetectPlayers set to true.

DetectPlayers

Gets or sets if the sensor should detect players.

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

DetectSmallShips

Gets or sets if the sensor should detect small ships.

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

DetectStations

Gets or sets if the sensor should detect large stations.

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

DetectSubgrids

Gets or sets if the sensor should detect subgrids (eg. connected by connector).

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

FrontExtend

Gets or sets the front range of the sensor.

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

IsActive

Gets if there is any entity currently being detected.

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

LastDetectedEntity

Gets the last detected entity

Declaration
MyDetectedEntityInfo LastDetectedEntity { get; }
Property Value
Type Description
MyDetectedEntityInfo

LeftExtend

Gets or sets the left range of the sensor.

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

MaxRange

Gets the maximum range of the sensor in any direction.

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

PlayProximitySound

Gets or sets if the proximity sound plays when an entity is detected.

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

RightExtend

Gets or sets the right range of the sensor.

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

TopExtend

Gets or sets the top range of the sensor.

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

Methods

DetectedEntities(List<MyDetectedEntityInfo>)

Gets the list of detected entities

Declaration
void DetectedEntities(List<MyDetectedEntityInfo> entities)
Parameters
Type Name Description
System.Collections.Generic.List<MyDetectedEntityInfo> entities

return list of entities

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
☀
☾