Skip to main content

FB2HowlingComponent

Overview

  • Component that manages howling (barking, etc.).

Metadata

FieldValue
Kindcomponent
EnvironmentB2 - Simulation
Categorycomponents
ExtendsFB2Component
Requirerequire('Components.B2HowlingComponent')

Properties (3)

NameTypeDescription
CooltimeMaptable<string, integer>
FailCooltimeMaptable<string, integer>Howling interaction failure cooldown (prevents immediate retry after a move failure).
PendingInteractionBagToEffectMaptable<string, string>Mapping of running Howling interactions (for reverse-tracing the HowlingEffectId on failure).

Functions (4)

FunctionParametersReturnsDescription
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
OnHowlingInteractionFailedInInteractionBagId: string-Called when a Howling interaction ends due to a move failure; applies the failure cooldown.
OnHowlingInteractionFinishedInInteractionBagId: string-Called when a Howling interaction ends normally; cleans up the PendingMap.
OnReceiveHowlingInHowlingId: string, InSenderId: FB1EntityIdbooleanCallback invoked on Receive Howling.

Override points (3)

Implement these in Lua as FB2HowlingComponent.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_OnHowlingInteractionFailedInInteractionBagId: string-Called when a Howling interaction ends due to a move failure; applies the failure cooldown.
Override_OnHowlingInteractionFinishedInInteractionBagId: string-Called when a Howling interaction ends normally; cleans up the PendingMap.
Override_OnReceiveHowlingInHowlingId: string, InSenderId: FB1EntityIdbooleanCallback invoked on Receive Howling.