Skip to main content

FB2Action_RabbitHole

Overview

  • Rabbit-hole action. The character disappears on execution, waits until the F1 time, then reappears in front of the home.

Metadata

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

Properties (3)

NameTypeDescription
FinishTickintegerAbsolute tick timestamp computed from FinishTime, compared against CurrentTime in OnTick to finish the action
FinishTimeintegerTime of day (HHMM) at which the rabbit hole action finishes, derived from Action.F1 or Action.F2 duration
RabbitHoleIdstringFB1RabbitHoleTableRow row id identifying which rabbit hole content to run

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