Show / Hide Table of Contents

Interface IMySearchEnemyComponent

Describes component that can find enemy grids and characters in range

Inherited Members
IMySearchEnemyComponent.FoundEnemyId
IMySearchEnemyComponent.TargetingLockOptions
IMySearchEnemyComponent.SubsystemsToDestroy
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMySearchEnemyComponent : IMySearchEnemyComponent

Properties

FoundEnemy

Gets found enemy (block or character)

Declaration
IMyEntity FoundEnemy { get; }
Property Value
Type Description
IMyEntity

Events

ForceSearchRequired

Called when the search component should receive a scan immediately. For example: previous target was destroyed

Declaration
event Action ForceSearchRequired
Event Type
Type Description
System.Action

SearchComplete

Called when Search was finished, as argument found enemy (block or character) is returned

Declaration
event Action<IMyEntity> SearchComplete
Event Type
Type Description
System.Action<IMyEntity>

TargetChanged

Called when target enemy (grid or character) is changed

Declaration
event Action<IMyEntity, IMyEntity, bool> TargetChanged
Event Type
Type Description
System.Action<IMyEntity, IMyEntity, System.Boolean>
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾