Skip to main content

FB2Action_PutDown

Overview

  • Put-down action. Difference from the legacy FB2Action_PutDown: GrabEntityId must already be set at OnInit() time.

Metadata

FieldValue
Kindaction
EnvironmentB2 - Simulation
Categoryactions
ExtendsFB2Action_Base
Requirerequire('Actions.B2Action_PutDown')

Properties (13)

NameTypeDescription
AnimMontageNamestringMontage name resolved from PutDownAnimId to put down grab entity
ChangePostureStateFB1PostureStatePosture state to apply to grab entity after put down (used when grab entity is a character)
CurrentAnimTimenumberElapsed time of put-down anim montage playback (reset to 0 on OnPlay)
GrabAnimMontageNamestringMontage name of grab entity's holding loop animation (stopped when put down finishes)
GrabIdstringFB1GrabTableRow row id of grab entity (grab type/definition key, not an entity id)
PostureAnimIdstringAnim id for grab entity's target posture (used when grab entity is a character)
PostureAnimMontageNamestringMontage name for grab entity's target posture (used when grab entity is a character)
PutDownAnimIdstringAnim id used to find put-down montage for grab entity
PutDownLocationFVectorWorld location to put down grab entity
PutDownMethodEB1PutDownMethodHow to put down object/character
PutDownRotationFRotatorWorld rotation to put down grab entity
SelectedHandEB1HandTypeHand with grab entity
TotalPlayLengthnumberTotal play length of put-down anim montage (from montage table row)

Functions (6)

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.
SetPutDownMethodInMethod: EB1PutDownMethod-Sets Put Down Method.

Override points (5)

Implement these in Lua as FB2Action_PutDown.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)