Skip to content

Types

Structs and enums used by the plugin.

FCrowdControlEffectInfo

Metadata for an instant effect.

FieldDescription
idUnique effect ID (lowercase, no spaces).
displayNameName shown to viewers.
descriptionDescription shown to viewers.
pricePrice in coins (default 1).
categoryArray of menu category names.

FCrowdControlTimedEffectInfo

Extends FCrowdControlEffectInfo for timed effects.

FieldDescription
durationEffect duration in seconds.

FCrowdControlParameterEffectInfo

Extends FCrowdControlEffectInfo for effects with viewer-selectable parameters.

FieldDescription
RequiresQuantityWhether viewers pick a quantity.
quantityAllowed quantity range.
parametersArray of FCrowdControlParameter.

FCrowdControlParameter

FieldDescription
_idParameter ID.
nameDisplay name.
typeECrowdControlParamType: OPTIONS, HexColor, or MinMax.
_optionsFor OPTIONS: array of FCrowdControlParamOption (id + DisplayName).
min / maxFor MinMax: allowed numeric range.

Helpers: MakeOptionParameter and MakeMinMaxParameter in UCrowdControlFunctionLibrary.

ECrowdControlEffectResult

Returned from UCrowdControlEffectComponent::OnEffectTriggered.

ValueMeaning
SuccessEffect applied; success reported automatically.
FailTemporaryCan't run right now; reported as failTemporary (refund, may retry).
FailPermanentCan never run; reported as failPermanent.
PendingComponent responds later via CompleteSuccess/CompleteFail*.

ECrowdControlConnectionState

Reported by OnConnectionStateChanged.

ValueMeaning
ConnectingConnection in progress.
DisconnectedNot connected.
WaitingForLoginConnected, waiting for the user to log in / authorize.
ConnectedAuthenticated and ready for effects.

ECrowdControlEffectReport

Used with ReportEffectStatus.

ValueMeaning
MenuVisible / MenuHiddenShow or hide the effect in the menu.
MenuAvailable / MenuUnavailableAllow or block purchasing. Independent from visibility.