FB2Action_WalkToContext
Overview
- WalkToContext action. Override the OnPlay/OnFinish/OnPaused/OnCanceled/OnTick timing hooks in Lua.
Metadata
| Field | Value |
|---|---|
| Kind | action |
| Environment | B2 - Simulation |
| Category | actions |
| Extends | FB2Action_WalkTo |
| Require | require('Actions.B2Action_WalkToContext') |
Properties (3)
| Name | Type | Description |
|---|---|---|
ConnectedScheduler | any | Walker's connected coop scheduler, resolved in OnInit()/OnB2PreBeginPlay() and consulted for rotation/context data in SetParams() |
ZoiGroupMoveCoopScheduler | any | ZoiGroupMove-cast of ConnectedScheduler, used by OnTick() to detect when the walker can stop |
bParseActionContextCompleted | boolean | Whether SetParams() has already parsed a coop-supplied action context for a non-rotation scheduler, avoiding re-parsing on later calls |
Functions (4)
| Function | Parameters | Returns | Description |
|---|---|---|---|
OnCanceled | - | - | Callback invoked on Canceled. |
OnFinish | - | - | Callback invoked on Finish. |
OnPaused | - | - | Callback invoked on Paused. |
OnTick | DeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number | - | Callback invoked on Tick. |
Override points (4)
Implement these in Lua as FB2Action_WalkToContext.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_OnTick | DeltaTime: number, CurrentTime: FDateTime, GameDeltaMinutes: number | - | Timing hook called every tick while the action runs. (performance-sensitive) |