Interface IMyTurretControlBlock
Describes Turret Control block (mods interface)
Inherited Members
Namespace: SpaceEngineers.Game.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyTurretControlBlock : IMyTurretControlBlock, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity
Properties
Pilot
Get the character that is currently piloting the controller.
Declaration
IMyCharacter Pilot { get; }
Property Value
| Type | Description |
|---|---|
| IMyCharacter |
PreviousControlledEntity
Get the block through which player got control to turret.
Declaration
IMyControllableEntity PreviousControlledEntity { get; }
Property Value
| Type | Description |
|---|---|
| IMyControllableEntity |
Target
Current target entity of turret control block
Declaration
IMyEntity Target { get; }
Property Value
| Type | Description |
|---|---|
| IMyEntity |
Methods
SetTarget(IMyEntity)
Sets target without position prediction
Declaration
void SetTarget(IMyEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyEntity | entity | target entity |
TrackTarget(IMyEntity)
Tracks entity with enabled position prediction
Declaration
void TrackTarget(IMyEntity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyEntity | entity | target entity |