Skip to main content

B2Action_WaitOccupiedSlot

  • Description
    * ===============
    * Stands in line for a slot that another character is currently using.
    * The character registers into the target slot's waiting line, walks to the spot its place in the line maps to, and
    * waits there. Whenever someone ahead leaves, every character behind gets a new spot and walks one step forward, so
    * the line closes up instead of leaving a hole. Once this character is first in line and the slot frees up it claims
    * the slot with the Reserved reason and finishes, so the interaction that follows on the next tick finds the slot
    * already held for it instead of losing it in the one-tick handoff gap.

    It derives from WalkTo rather than PlayAnim because the walking is the part that needs the path stack: the spot
    * changes while the action is running, and a queue is not worth a second copy of path-finding, turn anims and
    * arrival handling.
    * ===============
    * Param:
    * S1: -
    * S2: -
    * F1: -
    * F2: -
    * Note:
    * OnInit(): Reads the pending queue target from FB2InteractionComponent and joins the waiting line.
    * SetParams(): Resolves the destination from the current place in line instead of from a Target entity.
    * OnTick(): Walks forward when the place in line changes, re-checks the slot when it changes, and gives up once
    * the timeout in game minutes has passed.
    * OnFinish()/OnCanceled(): Leaves the line and unbinds. A canceled wait also drops the Reserved claim it took.
PropertyTypeDescriptionMetadata
TargetSlotOwnerEntityIdFB1EntityIdObject that owns the slot being waited for.
JoinedGameTimeFDateTimeGame time this character joined the line, so the place in line survives a save and reload.
TargetSlotNameFNameName of the slot being waited for.
TargetInteractionIdFNameInteraction the slot is being held for, so the Reserved claim passes the slot's EnableOnlyInteractionTags check.
LastKnownOrderint32Place in line the current walk destination was built from, so a changed place triggers a step forward.
WaitedGameMinutesfloatGame minutes spent standing in line. Compared against UB1InteractionDataAsset.SlotQueueTimeoutGameMinutes.
bReservedSlotboolTrue once this action has taken the Reserved claim, so a cancel knows it has to give it back.
FromFVectorPath start location, set in SetFromLocation()
ToFVectorPath destination location, set in FindTargetLocation()/SetParams() and refined as the path is resolved
bUseSprintboolWhether to sprint for this walk, set from the Sprint(S2) marker or by subclasses
bWaitRequestPathResultboolWhether an async path-find request is currently pending
bWaitRetryPathResultboolWhether a retried path result is pending after PathFollower requested a retry
WalkToStateEB2WalkToStateCurrent stage of the path-following/motion-warping/turn-anim state machine
MoveOverFB2MoveOverMove-over helper tracking overlap-avoidance movement toward the target/destination
OffsetDistancefloatDistance to stop short of the target along the path, set from Action.F1 (or DistFromFire for burning targets)
bStopBeforeSwimmingPoolNodeboolWhether to truncate the path before entering a swimming pool node
bIsScheduleWalkToboolWhether this is a schedule-driven walk pending a randomized SLOD teleport trigger time
bHasSwimmingPoolNodeboolWhether the resolved path passes through a swimming pool enter/exit node
ScheduleWalkToTeleportTriggerTimeFDateTimeGame time at which a schedule walk becomes eligible for SLOD teleport, randomized in OnInit
bIsSiteTargetWalkToboolWhether this walk targets a site (user-requested site move); affects path query params and finish handling
bIngoreTrafficSignalboolWhether the path follower should ignore traffic signals
bIsCommuteActionboolWhether this is a commute-style walk, cached in OnInit and used by OnPlay's SLOD teleport decision; serialized to persist the decision across save/load
bWasEverVisibleSlod0boolWhether this WalkToSpawner crowd walker has ever been SLOD0-visible, gating SLOD1 hold-teleport for previously-seen despawning crowds; serialized to persist across save/load
bTriedClearSituationalOutfitboolWhether the situational outfit clear has already run for this walk; serialized so that a save/load during path-wait does not run it twice
ActionIdFNameIdentifier of this action instance (used for interaction tracking and mission time accounting)
StateEB2ActionStateCurrent lifecycle state of this action
MergeTypeEB2ActionMergeTypeMerge type flags for this action (e.g. interaction merge, checked in Finish())
ResultEB2InteractionResultResult of this action once it stops playing (Finish/Failed/Canceled)
SelfEntityIdFB1EntityIdEntity id performing this action
TargetEntityIdFB1EntityIdEntity id targeted by this action
GrabEntityIdFB1EntityIdEntity id grabbed/carried by self entity for this action
NonTargetLocationFVectorLocation used for script/condition context when there is no target entity
ActionFB1ActionInfoAction table data (S1/S2/F1/F2, script id lists, etc.) driving this instance
TickCalcValuefloatAccumulated tick delta time since this action started ticking
CurrentNotifyIndexint32Index into Action.NotifyScriptIds for the next notify script to run
AsyncLoadAnimInfoTArrayAnimations to async-load for this action's start/notify/tick/finish/cancel scripts
AddActionTimeIntervalfloatInterval in seconds between OnTickAddActionExecuteTime() calls
AccumAddActionTimefloatElapsed time accumulator compared against AddActionTimeInterval
StartActionTickTimeint64Tick timestamp used to measure elapsed action execution time for mission tracking
ActionKeyFB2ActionKeyKey identifying this action's slot/queue within the interaction system
TimeTaskIdFB1TimeTaskIdId of the scheduled time task used for delayed Determine/Finish
IsForceCancelableboolWhether this action is force-cancelable, copied from Action.IsForceCancelable
IsFirstActionboolMarks the first action in an interaction sequence; set on actions[0] by FB2InteractionPlayer::LinkActions(), read by FB2ActionPlayer
bMultiFlagboolSet by looping actions (PlayAnim, BookRead, Eat, WaitTalkSequence) once a loop iteration completes; read/reset by FB2ActionPlayer to gate multi-interaction selection
TalkInstanceIdFB1TalkInstanceIdId of the talk instance this action is linked to, set externally by FB2InteractionPlayer::LinkActions()
TalkSubjectEntityIdFB1EntityIdEntity id of the talk subject linked to this action, set externally by FB2InteractionPlayer::LinkActions()/OnTalkSpaceParamChanged()
bIsWaitFinishEventboolCached copy of Action.IsWaitFinishAction taken at Init(); read directly by FB2ActionPlayer for sequencing (the IsWaitFinishAction() getter instead reads Action.IsWaitFinishAction live)
AutoInsertTypeEB2ActionAutoInsertTypeType of action that was auto-inserted before this one (e.g. WalkTo, ChangePosture)