Show / Hide Table of Contents

Class MyCharacterWeaponPositionComponent

Weapon positioning.

Inheritance
System.Object
MyComponentBase
MyEntityComponentBase
MyCharacterComponent
MyCharacterWeaponPositionComponent
Inherited Members
MyCharacterComponent.UpdateAfterSimulation10()
MyCharacterComponent.UpdateBeforeSimulation()
MyCharacterComponent.UpdateBeforeSimulationParallel()
MyCharacterComponent.Simulate()
MyCharacterComponent.UpdateAfterSimulation()
MyCharacterComponent.UpdateAfterSimulationParallel()
MyCharacterComponent.UpdateBeforeSimulation100()
MyCharacterComponent.OnCharacterDead()
MyCharacterComponent.OnAddedToContainer()
MyCharacterComponent.OnBeforeRemovedFromContainer()
MyCharacterComponent.NeedsUpdateAfterSimulation
MyCharacterComponent.NeedsUpdateAfterSimulationParallel
MyCharacterComponent.NeedsUpdateSimulation
MyCharacterComponent.NeedsUpdateAfterSimulation10
MyCharacterComponent.NeedsUpdateBeforeSimulation100
MyCharacterComponent.NeedsUpdateBeforeSimulation
MyCharacterComponent.NeedsUpdateBeforeSimulationParallel
MyCharacterComponent.Character
MyCharacterComponent.ComponentTypeDebugString
MyEntityComponentBase.Container
MyEntityComponentBase.Entity
MyEntityComponentBase.AttachSyncToEntity
MyEntityComponentBase.OnAfterAddedToContainer
MyEntityComponentBase.BeforeRemovedFromContainer
MyComponentBase.SetContainer(IMyComponentContainer)
MyComponentBase.GetAs<T>()
MyComponentBase.OnAddedToScene()
MyComponentBase.OnRemovedFromScene()
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 class MyCharacterWeaponPositionComponent : MyCharacterComponent, IMyEntityComponentBase, IMyComponentBase

Constructors

MyCharacterWeaponPositionComponent()

Declaration
public MyCharacterWeaponPositionComponent()

Properties

ArmsIkWeight

Declaration
public float ArmsIkWeight { get; }
Property Value
Type Description
System.Single

GraphicalPositionWorld

Declaration
public Vector3D GraphicalPositionWorld { get; }
Property Value
Type Description
Vector3D

IsInIronSight

Declaration
public bool IsInIronSight { get; }
Property Value
Type Description
System.Boolean

IsShooting

Declaration
public bool IsShooting { get; }
Property Value
Type Description
System.Boolean

LogicalCrosshairPoint

Declaration
public Vector3D LogicalCrosshairPoint { get; }
Property Value
Type Description
Vector3D

LogicalOrientationWorld

Declaration
public Vector3D LogicalOrientationWorld { get; }
Property Value
Type Description
Vector3D

LogicalPositionLocalSpace

Declaration
public Vector3D LogicalPositionLocalSpace { get; }
Property Value
Type Description
Vector3D

LogicalPositionWorld

Declaration
public Vector3D LogicalPositionWorld { get; }
Property Value
Type Description
Vector3D

ShouldSupressShootAnimation

Declaration
public bool ShouldSupressShootAnimation { get; set; }
Property Value
Type Description
System.Boolean

Methods

AddBackkick(Single)

Declaration
public void AddBackkick(float backkickForce)
Parameters
Type Name Description
System.Single backkickForce

Init(MyObjectBuilder_Character)

Initialize from character object builder.

Declaration
public virtual void Init(MyObjectBuilder_Character characterBuilder)
Parameters
Type Name Description
MyObjectBuilder_Character characterBuilder

Update(Boolean)

Update weapon position, either logical and graphical.

Declaration
public void Update(bool timeAdvanced = true)
Parameters
Type Name Description
System.Boolean timeAdvanced

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
☀
☾