FB2Action_SelectSlotOwnership
Overview
- SelectSlotOwnership action. Override the OnPlay/OnFinish/OnPaused/OnCanceled/OnTick timing hooks in Lua.
Metadata
| Field | Value |
|---|---|
| Kind | action |
| Environment | B2 - Simulation |
| Category | actions |
| Extends | FB2Action_Base |
| Require | require('Actions.B2Action_SelectSlotOwnership') |
Properties (4)
| Name | Type | Description |
|---|---|---|
InteractionBagId | string | Current interaction bag id, cached from self's interaction component and used to validate/report the UI request |
SlotOwnershipTag | string | Slot ownership tag to request, resolved from Action.S1 |
bRestore | boolean | Whether this action is being canceled as part of a save/load restore, skipping the normal unpause cleanup |
bSendPacket | boolean | Whether the open-UI packet was actually sent, gating cleanup and the OnTick auto-finish path |
Functions (6)
| Function | Parameters | Returns | Description |
|---|---|---|---|
IsNeedAutoInsertWalkAction | - | boolean | Returns whether Need Auto Insert Walk Action. |
OnCanceled | - | - | Callback invoked on Canceled. |
OnFinish | - | - | Callback invoked on Finish. |
OnPaused | - | - | Callback invoked on Paused. |
OnPlay | - | - | Callback invoked on Play. |
OnTick | DeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number | - | Callback invoked on Tick. |
Override points (5)
Implement these in Lua as FB2Action_SelectSlotOwnership.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
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_OnTick | DeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number | - | Timing hook called every tick while the action runs. (performance-sensitive) |