User Tools

Site Tools


enable_effect

This is an old revision of the document!


Enable Effect


Enables particle emission for the specified effect.

Signature:

enable_effect(effect)
ArgumentDescriptionTypeRequired
effectEffect to enable (as an entity reference).EntityYes

If an effect is configured as “One-Shot”, this function can be used to trigger the particles to emit, for example after being added to a scene via the Add Effect function.

Example:

enable_effect(entity["torch"].effect["flame"]);

Results: The effect attached to the “flame” attach point of the entity with ID “torch” will be enabled, triggering its particles to emit.

Use the Enable Effect function to …


Editor Node:

enable_effect.1706660521.txt.gz · Last modified: 2024/01/30 16:22 by justin