M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.Objects.AnimationPoints.AnimationPoint Class Reference

Inherits TaleWorlds.MountAndBlade.StandingPoint.

Inherited by SandBox.Objects.AnimationPoints.ChairUsePoint, and SandBox.Objects.AnimationPoints.PlayMusicPoint.

Classes

struct  ItemForBone
 

Public Member Functions

 AnimationPoint ()
 
void RequestResync ()
 
override void AfterMissionStart ()
 
override bool IsDisabledForAgent (Agent agent)
 
override TickRequirement GetTickRequirement ()
 
override WorldFrame GetUserFrameForAgent (Agent agent)
 
override bool IsUsableByAgent (Agent userAgent)
 
override void OnUse (Agent userAgent)
 
override void OnUseStopped (Agent userAgent, bool isSuccessful, int preferenceIndex)
 
override void SimulateTick (float dt)
 
override bool HasAlternative ()
 
float GetRandomWaitInSeconds ()
 
List< AnimationPointGetAlternatives ()
 
bool IsRotationCorrectDuringUsage ()
 
override void OnUserConversationStart ()
 
override void OnUserConversationEnd ()
 
void SetAgentItemsVisibility (bool isVisible)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.StandingPoint
 StandingPoint ()
 
void OnParentMachinePhysicsStateChanged ()
 
override bool IsDisabledForAgent (Agent agent)
 
override TickRequirement GetTickRequirement ()
 
override void OnUse (Agent userAgent)
 
override void OnUseStopped (Agent userAgent, bool isSuccessful, int preferenceIndex)
 
override WorldFrame GetUserFrameForAgent (Agent agent)
 
virtual bool HasAlternative ()
 
virtual float GetUsageScoreForAgent (Agent agent)
 
virtual float GetUsageScoreForAgent (ValueTuple< Agent, float > agentPair)
 
void SetupOnUsingStoppedBehavior (bool autoAttach, Action< Agent, bool > action)
 
override void OnEndMission ()
 
override string GetDescriptionText (GameEntity gameEntity=null)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.UsableMissionObject
virtual void OnUserConversationStart ()
 
virtual void OnUserConversationEnd ()
 
void SetIsDeactivatedSynched (bool value)
 
void SetIsDisabledForPlayersSynched (bool value)
 
virtual bool IsDisabledForAgent (Agent agent)
 
void AddComponent (UsableMissionObjectComponent component)
 
void RemoveComponent (UsableMissionObjectComponent component)
 
GetComponent< T > ()
 
void RefreshGameEntityWithWorldPosition ()
 
virtual void OnFocusGain (Agent userAgent)
 
virtual void OnFocusLose (Agent userAgent)
 
virtual TextObject GetInfoTextForBeingNotInteractable (Agent userAgent)
 
virtual void SetUserForClient (Agent userAgent)
 
virtual void OnUse (Agent userAgent)
 
virtual void OnAIMoveToUse (Agent userAgent, IDetachment detachment)
 
virtual void OnUseStopped (Agent userAgent, bool isSuccessful, int preferenceIndex)
 
virtual void OnMoveToStopped (Agent movingAgent)
 
virtual int GetMovingAgentCount ()
 
virtual Agent GetMovingAgentWithIndex (int index)
 
virtual void RemoveMovingAgent (Agent movingAgent)
 
virtual void AddMovingAgent (Agent movingAgent)
 
void OnAIDefendBegin (Agent agent, IDetachment detachment)
 
void OnAIDefendEnd (Agent agent)
 
void InitializeDefendingAgents ()
 
int GetDefendingAgentCount ()
 
void AddDefendingAgent (Agent agent)
 
void RemoveDefendingAgent (Agent agent)
 
void RemoveDefendingAgentAtIndex (int index)
 
bool IsAgentDefending (Agent agent)
 
virtual void SimulateTick (float dt)
 
override TickRequirement GetTickRequirement ()
 
virtual WorldFrame GetUserFrameForAgent (Agent agent)
 
override string ToString ()
 
virtual bool IsAIMovingTo (Agent agent)
 
virtual bool HasUserPositionsChanged (Agent agent)
 
override void WriteToNetwork ()
 Sends object's data to synchronize it to clients.
 
override bool ReadFromNetwork ()
 Receives object's data to synchronize it from the server.
 
virtual bool IsUsableByAgent (Agent userAgent)
 
override void OnEndMission ()
 
abstract string GetDescriptionText (GameEntity gameEntity=null)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.SynchedMissionObject
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 ()
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.MissionObject
 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)
 
- Public Member Functions inherited from TaleWorlds.Engine.ScriptComponentBehavior
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)
 
void OnUse (Agent userAgent)
 
void OnUseStopped (Agent userAgent, bool isSuccessful, int preferenceIndex)
 

Public Attributes

string ArriveAction = ""
 
string LoopStartAction = ""
 
string PairLoopStartAction = ""
 
string LeaveAction = ""
 
int GroupId = -1
 
string RightHandItem = ""
 
HumanBone RightHandItemBone = HumanBone.ItemR
 
string LeftHandItem = ""
 
HumanBone LeftHandItemBone = HumanBone.ItemL
 
GameEntity PairEntity = null
 
int MinUserToStartInteraction = 1
 
bool ActivatePairs = false
 
float MinWaitinSeconds = 30
 
float MaxWaitInSeconds = 120
 
float ForwardDistanceToPivotPoint = 0.0f
 
float SideDistanceToPivotPoint = 0.0f
 
bool KeepOldVisibility = false
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.StandingPoint
bool AutoSheathWeapons
 
bool AutoEquipWeaponsOnUseStopped
 
bool AutoWieldWeapons
 
readonly bool TranslateUser
 
bool HasRecentlyBeenRechecked = false
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.UsableMissionObject
TextObject DescriptionMessage = TextObject.Empty
 
TextObject ActionMessage = TextObject.Empty
 

Protected Member Functions

override void OnEditModeVisibilityChanged (bool currentVisibility)
 
override void OnEditorTick (float dt)
 
override void OnEditorInit ()
 
override void OnRemoved (int removeReason)
 
void ResetAnimations ()
 
override void OnEditorVariableChanged (string variableName)
 Called when an object's field has changed from the editor.
 
virtual bool ShouldUpdateOnEditorVariableChanged (string variableName)
 
void ClearAssignedItems ()
 
void AssignItemToBone (ItemForBone newItem)
 
override void OnInit ()
 This callback method is called when the object is constructed.
 
virtual void SetActionCodes ()
 
override bool DoesActionTypeStopUsingGameObject (Agent.ActionCodeType actionType)
 
override void OnTick (float dt)
 
bool CanAgentUseItem (Agent agent)
 
void AddItemsToAgent ()
 
virtual bool DoesActionTypeStopUsingGameObject (Agent.ActionCodeType actionType)
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.UsableMissionObject
 UsableMissionObject (bool isInstantUse=false)
 
virtual void CollectChildEntity (GameEntity childEntity)
 
virtual bool VerifyChildEntities (ref string errorMessage)
 
override void OnRemoved (int removeReason)
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.MissionObject
virtual void AttachDynamicNavmeshToEntity ()
 
virtual GameEntity GetEntityToAttachNavMeshFaces ()
 
override void OnRemoved (int removeReason)
 
- Protected Member Functions inherited from TaleWorlds.Engine.ScriptComponentBehavior
void InvalidateWeakPointersIfValid ()
 
 ScriptComponentBehavior ()
 
virtual void OnRemoved (int removeReason)
 

Protected Attributes

float ActionSpeed = 1f
 
ActionIndexCache LoopStartActionCode
 
ActionIndexCache PairLoopStartActionCode
 
ActionIndexCache DefaultActionCode
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.StandingPoint
BattleSideEnum StandingPointSide = BattleSideEnum.None
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.MissionObject
string NavMeshPrefabName = ""
 
int DynamicNavmeshIdStart = 0
 

Properties

override bool PlayerStopsUsingWhenInteractsWithOther [get]
 
bool IsArriveActionFinished [get]
 
string SelectedRightHandItem [get, set]
 
string SelectedLeftHandItem [get, set]
 
bool IsActive = true [get]
 
override bool DisableCombatActionsOnUse [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.StandingPoint
virtual Agent.AIScriptedFrameFlags DisableScriptedFrameFlags [get]
 
override bool DisableCombatActionsOnUse [get]
 
Agent FavoredUser [get, set]
 
virtual bool PlayerStopsUsingWhenInteractsWithOther [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.UsableMissionObject
virtual FocusableObjectType FocusableObjectType [get]
 
Agent UserAgent [get]
 
Agent PreviousUserAgent [get]
 
GameEntityWithWorldPosition GameEntityWithWorldPosition [get]
 
virtual Agent MovingAgent [get]
 
List< AgentDefendingAgents [get]
 
bool HasDefendingAgent [get]
 
bool IsInstantUse [get, protected set]
 Whether this object is used instantly or is used continuously over some time.
 
bool IsDeactivated [get, set]
 
bool IsDisabledForPlayers [get, set]
 
virtual GameEntity InteractionEntity [get]
 
bool HasAIUser [get]
 
bool HasUser [get]
 
virtual bool HasAIMovingTo [get]
 
virtual bool DisableCombatActionsOnUse [get]
 If user agent's combat actions will be disabled while using this object or not.
 
bool IsVisible [get, set]
 
- Properties inherited from TaleWorlds.MountAndBlade.SynchedMissionObject
uint Color [get]
 
uint Color2 [get]
 
bool SynchronizeCompleted [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.MissionObject
MissionObjectId Id [get, set]
 
bool IsDisabled [get]
 
bool CreatedAtRuntime [get]
 
- Properties inherited from TaleWorlds.Engine.ScriptComponentBehavior
GameEntity GameEntity [get]
 
ManagedScriptComponent ScriptComponent [get]
 
ManagedScriptHolder ManagedScriptHolder [get]
 
Scene Scene [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IFocusable
FocusableObjectType FocusableObjectType [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IVisible
bool IsVisible [get, set]
 

Additional Inherited Members

- Public Types inherited from TaleWorlds.MountAndBlade.SynchedMissionObject
enum  SynchFlags : uint {
  SynchNone = 0x00000000 ,
  SynchTransform = 0x00000001 ,
  SynchAnimation = 0x00000002 ,
  SynchBodyFlags = 0x00000004 ,
  SyncColors = 0x00000008 ,
  SynchAll = 0xffffffff
}
 
- Public Types inherited from TaleWorlds.Engine.ScriptComponentBehavior
enum  TickRequirement : uint {
  None = 0x00000000 ,
  TickOccasionally = 0x00000001 ,
  Tick = 0x00000002 ,
  TickParallel = 0x00000004 ,
  TickParallel2 = 0x00000008
}
 
- Static Protected Attributes inherited from TaleWorlds.MountAndBlade.MissionObject
const int InsideNavMeshIdLocal = 1
 
const int EnterNavMeshIdLocal = 2
 
const int ExitNavMeshIdLocal = 3
 
const int BlockerNavMeshIdLocal = 4
 
const int ExtraNavMesh1IdLocal = 5
 
const int ExtraNavMesh2IdLocal = 6
 
const int ExtraNavMesh3IdLocal = 7
 

Constructor & Destructor Documentation

◆ AnimationPoint()

SandBox.Objects.AnimationPoints.AnimationPoint.AnimationPoint ( )

Member Function Documentation

◆ OnEditModeVisibilityChanged()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnEditModeVisibilityChanged ( bool  currentVisibility)
protectedvirtual

◆ OnEditorTick()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnEditorTick ( float  dt)
protectedvirtual

◆ OnEditorInit()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnEditorInit ( )
protectedvirtual

◆ OnRemoved()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnRemoved ( int  removeReason)
protectedvirtual

◆ ResetAnimations()

void SandBox.Objects.AnimationPoints.AnimationPoint.ResetAnimations ( )
protected

◆ OnEditorVariableChanged()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnEditorVariableChanged ( string  variableName)
protectedvirtual
Parameters
variableNameName of the field which has just changed.

Reimplemented from TaleWorlds.Engine.ScriptComponentBehavior.

◆ RequestResync()

void SandBox.Objects.AnimationPoints.AnimationPoint.RequestResync ( )

◆ AfterMissionStart()

override void SandBox.Objects.AnimationPoints.AnimationPoint.AfterMissionStart ( )
virtual

◆ ShouldUpdateOnEditorVariableChanged()

virtual bool SandBox.Objects.AnimationPoints.AnimationPoint.ShouldUpdateOnEditorVariableChanged ( string  variableName)
protectedvirtual

◆ ClearAssignedItems()

void SandBox.Objects.AnimationPoints.AnimationPoint.ClearAssignedItems ( )
protected

◆ AssignItemToBone()

void SandBox.Objects.AnimationPoints.AnimationPoint.AssignItemToBone ( ItemForBone  newItem)
protected

◆ IsDisabledForAgent()

override bool SandBox.Objects.AnimationPoints.AnimationPoint.IsDisabledForAgent ( Agent  agent)
virtual

◆ OnInit()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnInit ( )
protectedvirtual

◆ SetActionCodes()

virtual void SandBox.Objects.AnimationPoints.AnimationPoint.SetActionCodes ( )
protectedvirtual

◆ DoesActionTypeStopUsingGameObject()

override bool SandBox.Objects.AnimationPoints.AnimationPoint.DoesActionTypeStopUsingGameObject ( Agent::ActionCodeType  actionType)
protectedvirtual

◆ GetTickRequirement()

override TickRequirement SandBox.Objects.AnimationPoints.AnimationPoint.GetTickRequirement ( )
virtual

◆ OnTick()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnTick ( float  dt)
protectedvirtual

◆ GetUserFrameForAgent()

override WorldFrame SandBox.Objects.AnimationPoints.AnimationPoint.GetUserFrameForAgent ( Agent  agent)
virtual

◆ IsUsableByAgent()

override bool SandBox.Objects.AnimationPoints.AnimationPoint.IsUsableByAgent ( Agent  userAgent)
virtual

◆ OnUse()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnUse ( Agent  userAgent)
virtual

◆ OnUseStopped()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnUseStopped ( Agent  userAgent,
bool  isSuccessful,
int  preferenceIndex 
)
virtual

◆ SimulateTick()

override void SandBox.Objects.AnimationPoints.AnimationPoint.SimulateTick ( float  dt)
virtual

◆ HasAlternative()

override bool SandBox.Objects.AnimationPoints.AnimationPoint.HasAlternative ( )
virtual

◆ GetRandomWaitInSeconds()

float SandBox.Objects.AnimationPoints.AnimationPoint.GetRandomWaitInSeconds ( )

◆ GetAlternatives()

List< AnimationPoint > SandBox.Objects.AnimationPoints.AnimationPoint.GetAlternatives ( )

◆ IsRotationCorrectDuringUsage()

bool SandBox.Objects.AnimationPoints.AnimationPoint.IsRotationCorrectDuringUsage ( )

◆ CanAgentUseItem()

bool SandBox.Objects.AnimationPoints.AnimationPoint.CanAgentUseItem ( Agent  agent)
protected

◆ AddItemsToAgent()

void SandBox.Objects.AnimationPoints.AnimationPoint.AddItemsToAgent ( )
protected

◆ OnUserConversationStart()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnUserConversationStart ( )
virtual

◆ OnUserConversationEnd()

override void SandBox.Objects.AnimationPoints.AnimationPoint.OnUserConversationEnd ( )
virtual

◆ SetAgentItemsVisibility()

void SandBox.Objects.AnimationPoints.AnimationPoint.SetAgentItemsVisibility ( bool  isVisible)

Member Data Documentation

◆ ArriveAction

string SandBox.Objects.AnimationPoints.AnimationPoint.ArriveAction = ""

◆ LoopStartAction

string SandBox.Objects.AnimationPoints.AnimationPoint.LoopStartAction = ""

◆ PairLoopStartAction

string SandBox.Objects.AnimationPoints.AnimationPoint.PairLoopStartAction = ""

◆ LeaveAction

string SandBox.Objects.AnimationPoints.AnimationPoint.LeaveAction = ""

◆ GroupId

int SandBox.Objects.AnimationPoints.AnimationPoint.GroupId = -1

◆ RightHandItem

string SandBox.Objects.AnimationPoints.AnimationPoint.RightHandItem = ""

◆ RightHandItemBone

HumanBone SandBox.Objects.AnimationPoints.AnimationPoint.RightHandItemBone = HumanBone.ItemR

◆ LeftHandItem

string SandBox.Objects.AnimationPoints.AnimationPoint.LeftHandItem = ""

◆ LeftHandItemBone

HumanBone SandBox.Objects.AnimationPoints.AnimationPoint.LeftHandItemBone = HumanBone.ItemL

◆ PairEntity

GameEntity SandBox.Objects.AnimationPoints.AnimationPoint.PairEntity = null

◆ MinUserToStartInteraction

int SandBox.Objects.AnimationPoints.AnimationPoint.MinUserToStartInteraction = 1

◆ ActivatePairs

bool SandBox.Objects.AnimationPoints.AnimationPoint.ActivatePairs = false

◆ MinWaitinSeconds

float SandBox.Objects.AnimationPoints.AnimationPoint.MinWaitinSeconds = 30

◆ MaxWaitInSeconds

float SandBox.Objects.AnimationPoints.AnimationPoint.MaxWaitInSeconds = 120

◆ ForwardDistanceToPivotPoint

float SandBox.Objects.AnimationPoints.AnimationPoint.ForwardDistanceToPivotPoint = 0.0f

◆ SideDistanceToPivotPoint

float SandBox.Objects.AnimationPoints.AnimationPoint.SideDistanceToPivotPoint = 0.0f

◆ ActionSpeed

float SandBox.Objects.AnimationPoints.AnimationPoint.ActionSpeed = 1f
protected

◆ KeepOldVisibility

bool SandBox.Objects.AnimationPoints.AnimationPoint.KeepOldVisibility = false

◆ LoopStartActionCode

ActionIndexCache SandBox.Objects.AnimationPoints.AnimationPoint.LoopStartActionCode
protected

◆ PairLoopStartActionCode

ActionIndexCache SandBox.Objects.AnimationPoints.AnimationPoint.PairLoopStartActionCode
protected

◆ DefaultActionCode

ActionIndexCache SandBox.Objects.AnimationPoints.AnimationPoint.DefaultActionCode
protected

Property Documentation

◆ PlayerStopsUsingWhenInteractsWithOther

override bool SandBox.Objects.AnimationPoints.AnimationPoint.PlayerStopsUsingWhenInteractsWithOther
get

◆ IsArriveActionFinished

bool SandBox.Objects.AnimationPoints.AnimationPoint.IsArriveActionFinished
get

◆ SelectedRightHandItem

string SandBox.Objects.AnimationPoints.AnimationPoint.SelectedRightHandItem
getsetprotected

◆ SelectedLeftHandItem

string SandBox.Objects.AnimationPoints.AnimationPoint.SelectedLeftHandItem
getsetprotected

◆ IsActive

bool SandBox.Objects.AnimationPoints.AnimationPoint.IsActive = true
get

◆ DisableCombatActionsOnUse

override bool SandBox.Objects.AnimationPoints.AnimationPoint.DisableCombatActionsOnUse
get