Skip to main content

Execute_PrepareFans

Description

Makes sure the city of the BaseObject star has at least F1 fans before a fan activity recruits them. When fewer fans are in the city, eligible candidates (CanBeFan, not the star's household member or partner) become fans, spawned candidates first. Existing fans are not refreshed and no fan is evicted, so it stops at the city cap (city crowd x DA_Fan MaxFanRatio). With F2 above 0, only fans who can join an activity of F2 hours from now are counted and only such candidates become fans (see IsAvailableFan). Recruit the participants afterwards with the IsAvailableFan condition using the same hours.

Parameters

ParameterDescription
BaseObjectStar whose city receives the fans.
F1Required fan count, a positive integer.
F2Activity length in hours from now, 0 to UB1FanDataAsset::MaxActivityHours. 0 counts every fan.

Examples

BaseObjectExecutionF1F2
SelfPrepareFans53