FB2HowlingComponent
Overview
- Component that manages howling (barking, etc.).
Metadata
| Field | Value |
|---|---|
| Kind | component |
| Environment | B2 - Simulation |
| Category | components |
| Extends | FB2Component |
| Require | require('Components.B2HowlingComponent') |
Properties (3)
| Name | Type | Description |
|---|---|---|
CooltimeMap | table<string, integer> | |
FailCooltimeMap | table<string, integer> | Howling interaction failure cooldown (prevents immediate retry after a move failure). |
PendingInteractionBagToEffectMap | table<string, string> | Mapping of running Howling interactions (for reverse-tracing the HowlingEffectId on failure). |
Functions (4)
| Function | Parameters | Returns | Description |
|---|---|---|---|
GetDefaultCityMoveDataPolicy | - | EB1CityMoveDataPolicy | Returns Default City Move Data Policy. |
OnHowlingInteractionFailed | InInteractionBagId: string | - | Called when a Howling interaction ends due to a move failure; applies the failure cooldown. |
OnHowlingInteractionFinished | InInteractionBagId: string | - | Called when a Howling interaction ends normally; cleans up the PendingMap. |
OnReceiveHowling | InHowlingId: string, InSenderId: FB1EntityId | boolean | Callback invoked on Receive Howling. |
Override points (3)
Implement these in Lua as FB2HowlingComponent.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_OnHowlingInteractionFailed | InInteractionBagId: string | - | Called when a Howling interaction ends due to a move failure; applies the failure cooldown. |
Override_OnHowlingInteractionFinished | InInteractionBagId: string | - | Called when a Howling interaction ends normally; cleans up the PendingMap. |
Override_OnReceiveHowling | InHowlingId: string, InSenderId: FB1EntityId | boolean | Callback invoked on Receive Howling. |