Skip to main content

FB2Action_DeliverObjectToTinyShop

Overview

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

Metadata

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

Properties (2)

NameTypeDescription
DeliverCountintegerNumber of items to deliver; 0 cancels the action, a positive value triggers finish
DeliverObjectIdstringObject id of the item being delivered to the tiny shop

Functions (7)

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.
SetDeliverCountInCount: integer-Sets Deliver Count.
SetDeliverObjectIdInObjectId: string-Sets Deliver Object Id.

Override points (5)

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