Class DestructableComponent
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
public class DestructableComponent : SynchedMissionObject, IFocusable
- Inheritance
-
DestructableComponent
- Implements
- Inherited Members
Fields
BattleSide
public BattleSideEnum BattleSide
Field Value
CanBeDestroyedInitially
public bool CanBeDestroyedInitially
Field Value
CleanStateTag
public const string CleanStateTag = "operational"
Field Value
DestroyOnAnyHit
public bool DestroyOnAnyHit
Field Value
DestroyedByStoneOnly
public bool DestroyedByStoneOnly
Field Value
DestructionStates
public string DestructionStates
Field Value
HeavyHitParticlesTag
public string HeavyHitParticlesTag
Field Value
HeavyHitParticlesThreshold
public float HeavyHitParticlesThreshold
Field Value
MaxBlowMagnitude
public static float MaxBlowMagnitude
Field Value
MaxHitPoint
public float MaxHitPoint
Field Value
OnCalculateDestructionStateIndex
[EditableScriptComponentVariable(false)]
public Func<int, int, int, int> OnCalculateDestructionStateIndex
Field Value
ParticleEffectOnDestroy
public string ParticleEffectOnDestroy
Field Value
PassHitOnToParent
public bool PassHitOnToParent
Field Value
ReferenceEntityTag
public string ReferenceEntityTag
Field Value
SoundAndParticleEffectForwardOffset
public float SoundAndParticleEffectForwardOffset
Field Value
SoundAndParticleEffectHeightOffset
public float SoundAndParticleEffectHeightOffset
Field Value
SoundEffectOnDestroy
public string SoundEffectOnDestroy
Field Value
Properties
CurrentState
public GameEntity CurrentState { get; }
Property Value
FocusableObjectType
public FocusableObjectType FocusableObjectType { get; }
Property Value
HitPoint
public float HitPoint { get; set; }
Property Value
IsDestroyed
public bool IsDestroyed { get; }
Property Value
Methods
AddStuckMissile(GameEntity)
public override void AddStuckMissile(GameEntity missileEntity)
Parameters
missileEntity
GameEntity
BurstHeavyHitParticles()
public void BurstHeavyHitParticles()
GetDescriptionText(GameEntity)
public string GetDescriptionText(GameEntity gameEntity = null)
Parameters
gameEntity
GameEntity
Returns
GetInfoTextForBeingNotInteractable(Agent)
public TextObject GetInfoTextForBeingNotInteractable(Agent userAgent)
Parameters
userAgent
Agent
Returns
GetOriginalState(GameEntity)
public GameEntity GetOriginalState(GameEntity parent)
Parameters
parent
GameEntity
Returns
MovesEntity()
protected override bool MovesEntity()
Returns
OnAfterReadFromNetwork((BaseSynchedMissionObjectReadableRecord, ISynchedMissionObjectReadableRecord))
public override void OnAfterReadFromNetwork((BaseSynchedMissionObjectReadableRecord, ISynchedMissionObjectReadableRecord) synchedMissionObjectReadableRecord)
Parameters
synchedMissionObjectReadableRecord
(BaseSynchedMissionObjectReadableRecord, ISynchedMissionObjectReadableRecord)
OnCheckForProblems()
protected override bool OnCheckForProblems()
Returns
OnEditorInit()
protected override void OnEditorInit()
OnEditorTick(float)
protected override void OnEditorTick(float dt)
Parameters
dt
float
OnEditorVariableChanged(string)
protected override void OnEditorVariableChanged(string variableName)
Parameters
variableName
string
OnFocusGain(Agent)
public void OnFocusGain(Agent userAgent)
Parameters
userAgent
Agent
OnFocusLose(Agent)
public void OnFocusLose(Agent userAgent)
Parameters
userAgent
Agent
OnHit(Agent, int, Vec3, Vec3, in MissionWeapon, ScriptComponentBehavior, out bool)
protected override bool OnHit(Agent attackerAgent, int inflictedDamage, Vec3 impactPosition, Vec3 impactDirection, in MissionWeapon weapon, ScriptComponentBehavior attackerScriptComponentBehavior, out bool reportDamage)
Parameters
attackerAgent
AgentinflictedDamage
intimpactPosition
Vec3impactDirection
Vec3weapon
MissionWeaponattackerScriptComponentBehavior
ScriptComponentBehaviorreportDamage
bool
Returns
OnInit()
protected override void OnInit()
OnMissionReset()
protected override void OnMissionReset()
PreDestroy()
public void PreDestroy()
Reset()
public void Reset()
SetDestructionLevel(int, int, float, Vec3, Vec3, bool)
public void SetDestructionLevel(int state, int forcedId, float blowMagnitude, Vec3 blowPosition, Vec3 blowDirection, bool noEffects = false)
Parameters
TriggerOnHit(Agent, int, Vec3, Vec3, in MissionWeapon, ScriptComponentBehavior)
public void TriggerOnHit(Agent attackerAgent, int inflictedDamage, Vec3 impactPosition, Vec3 impactDirection, in MissionWeapon weapon, ScriptComponentBehavior attackerScriptComponentBehavior)
Parameters
attackerAgent
AgentinflictedDamage
intimpactPosition
Vec3impactDirection
Vec3weapon
MissionWeaponattackerScriptComponentBehavior
ScriptComponentBehavior
WriteToNetwork()
public override void WriteToNetwork()
Events
OnDestroyed
public event DestructableComponent.OnHitTakenAndDestroyedDelegate OnDestroyed
Event Type
OnHitTaken
public event DestructableComponent.OnHitTakenAndDestroyedDelegate OnHitTaken
Event Type
OnNextDestructionState
public event Action OnNextDestructionState
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).