Show / Hide Table of Contents

Interface IMyLargeTurretBase

Describes turret block (PB scripting interface)

Inherited Members
IMyUserControllableGun.ShootOnce()
IMyUserControllableGun.IsShooting
IMyUserControllableGun.Shoot
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 IMyLargeTurretBase : IMyUserControllableGun, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity

Properties

AIEnabled

Checks is AI is enabled for turret

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

Azimuth

Gets or sets azimuth of turret, this method is not synced, you need to sync azimuth manually

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

CanControl

Returns true if current player can control this block. Always return false on Dedicated Server

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

Elevation

Gets / sets elevation of turret, this method is not synced, you need to sync elevation manually

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

EnableIdleRotation

Enable/disable idle rotation for turret, this method is not synced, you need to sync manually

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

HasTarget

Checks if the turret is locked onto a target

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

IsAimed

Returns true if turret head looking at target

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

IsUnderControl

Indicates whether a block is locally or remotely controlled.

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

Range

Gets and Sets shooting range of the turret

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

TargetCharacters

Gets/sets if the turret should target characters.

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

TargetEnemies

Gets/sets if the turret should target enemies.

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

TargetLargeGrids

Gets/sets if the turret should target large grids.

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

TargetMeteors

Gets/sets if the turret should target meteors.

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

TargetMissiles

Gets/sets if the turret should target missiles.

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

TargetNeutrals

Gets/sets if the turret should target neutrals.

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

TargetSmallGrids

Gets/sets if the turret should target small grids.

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

TargetStations

Gets/sets if the turret should target stations.

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

Methods

GetTargetedEntity()

Gets the turret's current detected entity, if any

Declaration
MyDetectedEntityInfo GetTargetedEntity()
Returns
Type Description
MyDetectedEntityInfo

GetTargetingGroup()

Gets current targeting group

Declaration
string GetTargetingGroup()
Returns
Type Description
System.String

GetTargetingGroups()

Gets all available targeting groups

Declaration
List<string> GetTargetingGroups()
Returns
Type Description
System.Collections.Generic.List<System.String>

ResetTargetingToDefault()

Resets targeting to default values

Declaration
void ResetTargetingToDefault()

SetManualAzimuthAndElevation(Single, Single)

Sets azimuth and elevation of the turret, this method is not synced, you need to sync it manually. Call SyncAzimuth or SyncElevation.

Declaration
void SetManualAzimuthAndElevation(float azimuth, float elevation)
Parameters
Type Name Description
System.Single azimuth

azimuth value

System.Single elevation

elevation value

SetTarget(Vector3D)

Set targets given position

Declaration
void SetTarget(Vector3D pos)
Parameters
Type Name Description
Vector3D pos

Target world coordinates

SetTargetingGroup(String)

Sets current targeting group

Declaration
void SetTargetingGroup(string groupSubtypeId)
Parameters
Type Name Description
System.String groupSubtypeId

SyncAzimuth()

Method used to sync azimuth, you need to call it to sync azimuth for other clients/server

Declaration
void SyncAzimuth()

SyncElevation()

Method used to sync elevation of turret, you need to call it to sync elevation for other clients/server

Declaration
void SyncElevation()

SyncEnableIdleRotation()

Method used to sync idle rotation and elevation, you need to call it to sync rotation and elevation for other clients/server

Declaration
void SyncEnableIdleRotation()

TrackTarget(Vector3D, Vector3)

Tracks given target with enabled position prediction

Declaration
void TrackTarget(Vector3D pos, Vector3 velocity)
Parameters
Type Name Description
Vector3D pos

Position of turret

Vector3 velocity

Velocity of target

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