CrowdControlEffect
Inherits: Resource < RefCounted < Object
Represents an individual interactivity effect in the CrowdControl system.
Description
CrowdControlEffect defines a single effect that a viewer can trigger in your game, such as giving coins, changing player color, or dealing damage.
Properties
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
to_json() const |
Property Descriptions
PackedStringArray category = PackedStringArray() 🔗
void set_category(value: PackedStringArray)
PackedStringArray get_category()
List of categories this effect belongs to.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
Human-readable description of the effect.
Duration of the effect in milliseconds.
A value of 0 usually indicates an instant effect with no lasting duration.
Unique identifier for this effect.
Display name of the effect.
PackedStringArray group = PackedStringArray() 🔗
void set_group(value: PackedStringArray)
PackedStringArray get_group()
List of groups this effect belongs to.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
Whether the effect is currently inactive.
Additional notes or internal comments about the effect.
Dictionary parameters = {} 🔗
void set_parameters(value: Dictionary)
Dictionary get_parameters()
Dictionary of configurable parameters for the effect.
Cost required to trigger the effect.
Typically expressed in platform-specific currency (e.g., points, coins).
Maximum quantity that can be applied in a single trigger.
Minimum quantity required to trigger the effect.
Method Descriptions
Dictionary to_json() const 🔗
Serializes this CrowdControlEffect into a JSON-compatible dictionary for sending to the CrowdControl API.