M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Inherits TaleWorlds.MountAndBlade.SynchedMissionObject, and TaleWorlds.MountAndBlade.IFocusable.
Public Member Functions | |
delegate void | OnHitTakenAndDestroyedDelegate (DestructableComponent target, Agent attackerAgent, in MissionWeapon weapon, ScriptComponentBehavior attackerScriptComponentBehavior, int inflictedDamage) |
GameEntity | GetOriginalState (GameEntity parent) |
void | Reset () |
void | TriggerOnHit (Agent attackerAgent, int inflictedDamage, Vec3 impactPosition, Vec3 impactDirection, in MissionWeapon weapon, ScriptComponentBehavior attackerScriptComponentBehavior) |
void | BurstHeavyHitParticles () |
void | SetDestructionLevel (int state, int forcedId, float blowMagnitude, Vec3 blowPosition, Vec3 blowDirection, bool noEffects=false) |
void | PreDestroy () |
override void | WriteToNetwork () |
override bool | ReadFromNetwork () |
override void | AddStuckMissile (GameEntity missileEntity) |
void | OnFocusGain (Agent userAgent) |
void | OnFocusLose (Agent userAgent) |
TextObject | GetInfoTextForBeingNotInteractable (Agent userAgent) |
string | GetDescriptionText (GameEntity gameEntity=null) |
![]() | |
override TickRequirement | GetTickRequirement () |
void | SetLocalPositionSmoothStep (ref Vec3 targetPosition) |
virtual void | SetVisibleSynched (bool value, bool forceChildrenVisible=false) |
virtual void | SetPhysicsStateSynched (bool value, bool setChildren=true) |
virtual void | SetDisabledSynched () |
void | SetFrameSynched (ref MatrixFrame frame, bool isClient=false) |
void | SetGlobalFrameSynched (ref MatrixFrame frame, bool isClient=false) |
void | SetFrameSynchedOverTime (ref MatrixFrame frame, float duration, bool isClient=false) |
void | SetGlobalFrameSynchedOverTime (ref MatrixFrame frame, float duration, bool isClient=false) |
void | SetAnimationAtChannelSynched (string animationName, int channelNo, float animationSpeed=1.0f) |
void | SetAnimationAtChannelSynched (int animationIndex, int channelNo, float animationSpeed=1.0f) |
void | SetAnimationChannelParameterSynched (int channelNo, float parameter) |
void | PauseSkeletonAnimationSynched () |
void | ResumeSkeletonAnimationSynched () |
void | BurstParticlesSynched (bool doChildren=true) |
void | ApplyImpulseSynched (Vec3 localPosition, Vec3 impulse) |
void | AddBodyFlagsSynched (BodyFlags flags, bool applyToChildren=true) |
void | RemoveBodyFlagsSynched (BodyFlags flags, bool applyToChildren=true) |
void | SetTeamColors (uint color, uint color2) |
virtual void | SetTeamColorsSynched (uint color, uint color2) |
virtual bool | ReadFromNetwork () |
virtual void | WriteToNetwork () |
![]() | |
MissionObject () | |
virtual void | SetAbilityOfFaces (bool enabled) |
override int | GetHashCode () |
virtual void | AfterMissionStart () |
void | SetDisabled (bool isParentObject=false) |
Only disables the mission object script and removes it from active mission objects list but the object entity remains visible with active physics. | |
void | SetDisabledAndMakeInvisible (bool isParentObject=false) |
Mission object is disabled and removed from active mission objects list, its entity is made invisible and therefore its physics is turned off. | |
virtual void | OnEndMission () |
virtual void | AddStuckMissile (GameEntity missileEntity) |
![]() | |
void | SetScriptComponentToTick (TickRequirement value) |
void | SetScriptComponentToTickMT (TickRequirement value) |
virtual TickRequirement | GetTickRequirement () |
void | OnFocusGain (Agent userAgent) |
void | OnFocusLose (Agent userAgent) |
TextObject | GetInfoTextForBeingNotInteractable (Agent userAgent) |
string | GetDescriptionText (GameEntity gameEntity=null) |
Public Attributes | |
string | DestructionStates |
bool | DestroyedByStoneOnly = false |
bool | CanBeDestroyedInitially = true |
float | MaxHitPoint = 100.0f |
bool | DestroyOnAnyHit = false |
bool | PassHitOnToParent = false |
string | ReferenceEntityTag |
string | HeavyHitParticlesTag |
float | HeavyHitParticlesThreshold = 5.0f |
string | ParticleEffectOnDestroy = "" |
string | SoundEffectOnDestroy = "" |
float | SoundAndParticleEffectHeightOffset = 0.0f |
float | SoundAndParticleEffectForwardOffset = 0.0f |
BattleSideEnum | BattleSide = BattleSideEnum.None |
Func< int, int, int, int > | OnCalculateDestructionStateIndex |
Static Public Attributes | |
const string | CleanStateTag = "operational" |
static float | MaxBlowMagnitude = 20.0f |
Properties | |
float | HitPoint [get, set] |
FocusableObjectType | FocusableObjectType [get] |
bool | IsDestroyed [get] |
GameEntity | CurrentState [get] |
![]() | |
uint | Color [get] |
uint | Color2 [get] |
bool | SynchronizeCompleted [get] |
![]() | |
MissionObjectId | Id [get, set] |
bool | IsDisabled [get] |
bool | CreatedAtRuntime [get] |
![]() | |
GameEntity | GameEntity [get] |
ManagedScriptComponent | ScriptComponent [get] |
ManagedScriptHolder | ManagedScriptHolder [get] |
Scene | Scene [get] |
![]() | |
FocusableObjectType | FocusableObjectType [get] |
Events | |
Action | OnNextDestructionState |
OnHitTakenAndDestroyedDelegate | OnDestroyed |
OnHitTakenAndDestroyedDelegate | OnHitTaken |
delegate void TaleWorlds.MountAndBlade.DestructableComponent.OnHitTakenAndDestroyedDelegate | ( | DestructableComponent | target, |
Agent | attackerAgent, | ||
in MissionWeapon | weapon, | ||
ScriptComponentBehavior | attackerScriptComponentBehavior, | ||
int | inflictedDamage | ||
) |
GameEntity TaleWorlds.MountAndBlade.DestructableComponent.GetOriginalState | ( | GameEntity | parent | ) |
void TaleWorlds.MountAndBlade.DestructableComponent.Reset | ( | ) |
void TaleWorlds.MountAndBlade.DestructableComponent.TriggerOnHit | ( | Agent | attackerAgent, |
int | inflictedDamage, | ||
Vec3 | impactPosition, | ||
Vec3 | impactDirection, | ||
in MissionWeapon | weapon, | ||
ScriptComponentBehavior | attackerScriptComponentBehavior | ||
) |
void TaleWorlds.MountAndBlade.DestructableComponent.BurstHeavyHitParticles | ( | ) |
void TaleWorlds.MountAndBlade.DestructableComponent.SetDestructionLevel | ( | int | state, |
int | forcedId, | ||
float | blowMagnitude, | ||
Vec3 | blowPosition, | ||
Vec3 | blowDirection, | ||
bool | noEffects = false |
||
) |
void TaleWorlds.MountAndBlade.DestructableComponent.PreDestroy | ( | ) |
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.MissionObject.
void TaleWorlds.MountAndBlade.DestructableComponent.OnFocusGain | ( | Agent | userAgent | ) |
Implements TaleWorlds.MountAndBlade.IFocusable.
void TaleWorlds.MountAndBlade.DestructableComponent.OnFocusLose | ( | Agent | userAgent | ) |
Implements TaleWorlds.MountAndBlade.IFocusable.
TextObject TaleWorlds.MountAndBlade.DestructableComponent.GetInfoTextForBeingNotInteractable | ( | Agent | userAgent | ) |
Implements TaleWorlds.MountAndBlade.IFocusable.
string TaleWorlds.MountAndBlade.DestructableComponent.GetDescriptionText | ( | GameEntity | gameEntity = null | ) |
Implements TaleWorlds.MountAndBlade.IFocusable.
|
static |
|
static |
string TaleWorlds.MountAndBlade.DestructableComponent.DestructionStates |
bool TaleWorlds.MountAndBlade.DestructableComponent.DestroyedByStoneOnly = false |
bool TaleWorlds.MountAndBlade.DestructableComponent.CanBeDestroyedInitially = true |
float TaleWorlds.MountAndBlade.DestructableComponent.MaxHitPoint = 100.0f |
bool TaleWorlds.MountAndBlade.DestructableComponent.DestroyOnAnyHit = false |
bool TaleWorlds.MountAndBlade.DestructableComponent.PassHitOnToParent = false |
string TaleWorlds.MountAndBlade.DestructableComponent.ReferenceEntityTag |
string TaleWorlds.MountAndBlade.DestructableComponent.HeavyHitParticlesTag |
float TaleWorlds.MountAndBlade.DestructableComponent.HeavyHitParticlesThreshold = 5.0f |
string TaleWorlds.MountAndBlade.DestructableComponent.ParticleEffectOnDestroy = "" |
string TaleWorlds.MountAndBlade.DestructableComponent.SoundEffectOnDestroy = "" |
float TaleWorlds.MountAndBlade.DestructableComponent.SoundAndParticleEffectHeightOffset = 0.0f |
float TaleWorlds.MountAndBlade.DestructableComponent.SoundAndParticleEffectForwardOffset = 0.0f |
BattleSideEnum TaleWorlds.MountAndBlade.DestructableComponent.BattleSide = BattleSideEnum.None |
Func<int, int, int, int> TaleWorlds.MountAndBlade.DestructableComponent.OnCalculateDestructionStateIndex |
|
getset |
|
get |
Implements TaleWorlds.MountAndBlade.IFocusable.
|
get |
|
get |
Action TaleWorlds.MountAndBlade.DestructableComponent.OnNextDestructionState |
OnHitTakenAndDestroyedDelegate TaleWorlds.MountAndBlade.DestructableComponent.OnDestroyed |
OnHitTakenAndDestroyedDelegate TaleWorlds.MountAndBlade.DestructableComponent.OnHitTaken |