Interface IMyDefensiveCombatBlock
Describes defensive combat block (mods interface) All logic is done on server, so dont use that api on client
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyDefensiveCombatBlock : IMyDefensiveCombatBlock, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity
Properties
FleeBeaconEntityId
Gets or sets selected beacon entityId, used for flee coordinates
Declaration
Nullable<long> FleeBeaconEntityId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
FleeGps
Gets or sets gps, used for flee coordinates
Declaration
Nullable<GpsInfo> FleeGps { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<VRage.Game.ObjectBuilders.AI.GpsInfo> |
SearchEnemyComponent
Gets SearchEnemyComponent
Declaration
IMySearchEnemyComponent SearchEnemyComponent { get; }
Property Value
Type | Description |
---|---|
IMySearchEnemyComponent |
Methods
DoSearch()
Start searching enemy. May do nothing if block is not in work state. Also works only server
Declaration
void DoSearch()
ForceFlee()
Starts flee mechanic. May flee even if it is not functional, working or it is already fleeing
Declaration
void ForceFlee()
Events
IsFleeingChanged
Called when block starts or stops fleeing
Declaration
event Action<IMyDefensiveCombatBlock, bool> IsFleeingChanged
Event Type
Type | Description |
---|---|
System.Action<IMyDefensiveCombatBlock, System.Boolean> |