Skip to main content

FB2Action_TalkContext

Overview

  • TalkContext action. Override the OnPlay/OnFinish/OnPaused/OnCanceled/OnTick timing hooks in Lua.

Metadata

FieldValue
Kindaction
EnvironmentB2 - Simulation
Categoryactions
ExtendsFB2Action_PlayAnim
Requirerequire('Actions.B2Action_TalkContext')

Properties (8)

NameTypeDescription
CurrentMontageTimeOutnumberElapsed time accumulator counting toward OverridedMontageTimeOut
HiddenGrabObjectbooleanWhether the grabbed object should be hidden while talking (from the coop talk action context)
LookAtTargetCharacterFB1EntityIdTarget character entity id this character should look at while talking, if set (from the coop talk action context)
OverridedMontageTimeOutnumberForced montage duration (seconds) to wait when bOverridedMontagePlayTime is set
TalkFinishScriptIdsstring[]Script ids run once when the talk action finishes (from the coop talk action context)
TalkStartScriptIdsstring[]Script ids run once when the talk action starts (from the coop talk action context)
bNotPlayingAnimbooleanWhether this talk is voice-only, with animation driven externally by the speaker's notify, skipping this action's own PlayAnim setup
bOverridedMontagePlayTimebooleanWhether montage play time is overridden by a fixed forced duration instead of the natural animation length

Functions (5)

FunctionParametersReturnsDescription
OnCanceled--Callback invoked on Canceled.
OnFinish--Callback invoked on Finish.
OnPaused--Callback invoked on Paused.
OnPlay--Callback invoked on Play.
OnTickDeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number-Callback invoked on Tick.

Override points (5)

Implement these in Lua as FB2Action_TalkContext.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_OnCanceled--Timing hook called when the action is canceled.
Override_OnFinish--Timing hook called when the action finishes.
Override_OnPaused--Timing hook called when the action is paused.
Override_OnPlay--Timing hook called when the action starts (play). Override in Lua to replace the start behavior.
Override_OnTickDeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number-Timing hook called every tick while the action runs. (performance-sensitive)