CrowdControlEffectParameter
Inherits: Resource < RefCounted < Object
Defines configurable generic options for a CrowdControlEffect.
Description
CrowdControlEffectParameter allows effects to have options or dropdowns that viewers can fill out when triggering the effect. For example, selecting a specific color or target player.
Properties
|
||
|
||
|
Methods
to_json() const |
Property Descriptions
Dictionary options = {} 🔗
void set_options(value: Dictionary)
Dictionary get_options()
Used when the parameter represents a predefined set of values (e.g., dropdown or choice list).
Keys typically represent option identifiers, while values define their display names or metadata.
Used to identify and reference this parameter when passing values to an effect.
Must be consistent with the expected parameter key in the effect's configuration.
String parameter_type = "options" 🔗
Defines how the parameter value should be interpreted and presented.
Common types include "options", "number", "string", or "boolean".
The default "options" type indicates that selectable values are provided via the options dictionary.
Method Descriptions
Dictionary to_json() const 🔗
Serializes this CrowdControlEffectParameter into a JSON-compatible dictionary for API transmission.