Interface IMyDefensiveCombatBlock
Describes defensive combat block interface
Inherited Members
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyDefensiveCombatBlock : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
CustomFleeCoordinates
Gets or sets world position where it should flee. Has higher priority than FleeBeaconEntityId, FleeGps
Declaration
Nullable<Vector3D> CustomFleeCoordinates { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Vector3D> |
FleeBeaconEntityId
Gets selected beacon entityId, used for flee coordinates
Declaration
Nullable<long> FleeBeaconEntityId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
FleeCoordinates
Gets flee coordinates
Declaration
Nullable<Vector3D> FleeCoordinates { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Vector3D> |
FleeGps
Gets gps, used for flee coordinates
Declaration
Nullable<GpsInfo> FleeGps { get; }
Property Value
Type | Description |
---|---|
System.Nullable<VRage.Game.ObjectBuilders.AI.GpsInfo> |
FleeTrigger
On what event block should flee
Declaration
FleeTrigger FleeTrigger { get; set; }
Property Value
Type | Description |
---|---|
FleeTrigger |
IsFleeing
Gets if block currently fleeing
Declaration
bool IsFleeing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LockTarget
Gets or sets if block can target lock enemies
Declaration
bool LockTarget { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SearchEnemyComponent
Gets search enemy component
Declaration
IMySearchEnemyComponent SearchEnemyComponent { get; }
Property Value
Type | Description |
---|---|
IMySearchEnemyComponent |
WaypointZoneSize
Gets or sets waypoint zone size (meters)
Declaration
float WaypointZoneSize { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Flee()
Starts flee mechanic
Declaration
void Flee()