Skip to main content

FB2Action_BuyObjectAtTinyShop

Overview

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

Metadata

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

Properties (7)

NameTypeDescription
AnimMontageNamestringResolved montage row name used to play the pick-up animation
FakeObjectListFB1EntityId[]Same field as B2Action_Buy's fake-object-substitution feature, but unlike Buy.h, never assigned or read here - appears unimplemented in this class
GrabIdstringGrab table id for the carriable object being picked up
GrabLoopAnimIdstringLoop animation id for holding the grabbed object, requested for async preload
PickUpAnimIdstringResolved animation id for the pick-up motion
PostureComponentanyCached posture component of the self character, used to set the grab id
bUseFakeObjectbooleanSame field as B2Action_Buy's fake-object-substitution feature, but unlike Buy.h, never assigned or read here - appears unimplemented in this class

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_BuyObjectAtTinyShop.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)