Show / Hide Table of Contents

Class MyCharacterDetectorComponent

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyEventProxyEntityComponent
MyUpdatingEntityComponent
MyCharacterDetectorComponent
MyCharacterRaycastDetectorComponent
MyCharacterShapecastDetectorComponent
Implements
IMyCharacterComponent
Inherited Members
MyUpdatingEntityComponent.UpdateOnceBeforeFrame()
MyUpdatingEntityComponent.UpdateBeforeSimulation()
MyUpdatingEntityComponent.UpdateBeforeSimulation100()
MyUpdatingEntityComponent.UpdateBeforeSimulationParallel()
MyUpdatingEntityComponent.UpdateSimulate()
MyUpdatingEntityComponent.UpdateAfterSimulation()
MyUpdatingEntityComponent.UpdateAfterSimulation100()
MyUpdatingEntityComponent.UpdateAfterSimulationParallel()
MyUpdatingEntityComponent.ParentEntity
MyUpdatingEntityComponent.NeedsUpdate
MyUpdatingEntityComponent.NeedsUpdateBeforeSimulation
MyUpdatingEntityComponent.NeedsUpdateBeforeSimulation100
MyUpdatingEntityComponent.NeedsUpdateSimulation
MyUpdatingEntityComponent.NeedsUpdateAfterSimulation
MyUpdatingEntityComponent.NeedsUpdateAfterSimulation10
MyUpdatingEntityComponent.NeedsUpdateAfterSimulation100
MyUpdatingEntityComponent.UpdateParallel
MyUpdatingEntityComponent.UpdatingType
MyUpdatingEntityComponent.NeedsUpdateChanged
MyUpdatingEntityComponent.UpdateParallelChanged
MyEventProxyEntityComponent.SyncType
MyEventProxyEntityComponent.AttachSyncToEntity
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.ComponentTypeDebugString
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.Serialize(Boolean)
MyComponentBase.Deserialize(MyObjectBuilder_ComponentBase)
MyComponentBase.Init(MyComponentDefinitionBase)
MyComponentBase.IsSerialized()
MyComponentBase.RemoveExistingComponentOnNewInsert
MyComponentBase.ContainerBase
Namespace: Sandbox.Game.Entities.Character.Components
Assembly: Sandbox.Game.dll
Syntax
public abstract class MyCharacterDetectorComponent : MyUpdatingEntityComponent, IMyEntityComponentBase, IMyComponentBase, IMyEventProxy, IMyEventOwner, IMyUpdatingEntityComponent, IMyCharacterComponent

Constructors

MyCharacterDetectorComponent()

Declaration
protected MyCharacterDetectorComponent()

Fields

m_charHitInfo

Declaration
protected MyCharacterHitInfo m_charHitInfo
Field Value
Type Description
Sandbox.Game.Entities.Character.MyCharacterHitInfo

m_interactiveObject

Declaration
protected IMyUseObject m_interactiveObject
Field Value
Type Description
IMyUseObject

m_npcGridNotification

Declaration
protected MyHudNotification m_npcGridNotification
Field Value
Type Description
Sandbox.Game.Gui.MyHudNotification

Properties

Character

Declaration
public MyCharacter Character { get; }
Property Value
Type Description
Sandbox.Game.Entities.Character.MyCharacter

DetectedEntity

Declaration
public IMyEntity DetectedEntity { get; protected set; }
Property Value
Type Description
IMyEntity

HitBody

Declaration
public HkRigidBody HitBody { get; protected set; }
Property Value
Type Description
Havok.HkRigidBody

HitMaterial

Declaration
public MyStringHash HitMaterial { get; protected set; }
Property Value
Type Description
MyStringHash

HitNormal

Declaration
public Vector3 HitNormal { get; protected set; }
Property Value
Type Description
Vector3

HitPosition

Declaration
public Vector3D HitPosition { get; protected set; }
Property Value
Type Description
Vector3D

HitTag

Declaration
public object HitTag { get; protected set; }
Property Value
Type Description
System.Object

ShapeKey

Declaration
public uint ShapeKey { get; protected set; }
Property Value
Type Description
System.UInt32

StartPosition

Declaration
public Vector3D StartPosition { get; protected set; }
Property Value
Type Description
Vector3D

UseObject

Declaration
public virtual IMyUseObject UseObject { get; protected set; }
Property Value
Type Description
IMyUseObject

Methods

DisableDetectors()

Declaration
protected static void DisableDetectors()

DoDetection(Boolean)

Declaration
protected abstract void DoDetection(bool useHead)
Parameters
Type Name Description
System.Boolean useHead

EnableDetectorsInArea(Vector3D)

Declaration
protected static void EnableDetectorsInArea(Vector3D from)
Parameters
Type Name Description
Vector3D from

HandleInteractiveObject(IMyUseObject)

Declaration
protected static void HandleInteractiveObject(IMyUseObject interactive)
Parameters
Type Name Description
IMyUseObject interactive

InteractiveObjectChanged()

Declaration
protected void InteractiveObjectChanged()

InteractiveObjectContinue()

Declaration
protected void InteractiveObjectContinue()

InteractiveObjectRemoved()

Declaration
protected void InteractiveObjectRemoved()

OnAddedToContainer()

Declaration
public override void OnAddedToContainer()
Overrides
MyEntityComponentBase.OnAddedToContainer()

OnBeforeRemovedFromContainer()

Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
MyEventProxyEntityComponent.OnBeforeRemovedFromContainer()

OnCharacterDead()

Declaration
public virtual void OnCharacterDead()

OnDetectedEntityMarkForClose(IMyEntity)

Declaration
protected virtual void OnDetectedEntityMarkForClose(IMyEntity obj)
Parameters
Type Name Description
IMyEntity obj

OnRemovedFromScene()

Declaration
public override void OnRemovedFromScene()
Overrides
MyComponentBase.OnRemovedFromScene()

RaiseObjectUsed()

Declaration
public void RaiseObjectUsed()

UpdateAfterSimulation10()

Declaration
public override void UpdateAfterSimulation10()
Overrides
MyUpdatingEntityComponent.UpdateAfterSimulation10()

UpdateInteractiveObjectNotification()

Declaration
public void UpdateInteractiveObjectNotification()

UseClose()

Declaration
protected void UseClose()

UseContinues()

Declaration
public void UseContinues()

Events

OnInteractiveObjectChanged

Declaration
public static event Action<IMyUseObject> OnInteractiveObjectChanged
Event Type
Type Description
System.Action<IMyUseObject>

OnInteractiveObjectUsed

Declaration
public static event Action<IMyUseObject> OnInteractiveObjectUsed
Event Type
Type Description
System.Action<IMyUseObject>

Implements

IMyCharacterComponent

Extension Methods

MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.RegisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventHandler)
MyEntityContainerEventExtensions.UnregisterForEntityEvent(MyEntityComponentBase, MyEntity, MyStringHash)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntityComponentBase, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾