User Tools

Site Tools


disable_effect

Disable Effect


Disables particle emission for the specified effect.

Signature:

disable_effect(effect)
ArgumentDescriptionTypeRequired
effectEffect to disable (e.g. entity[“effect_entity_id”]).EntityYes

Example:

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

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

Use the Disable Effect function to extinguish a torch's flame or to remove sparks from a machine that was fixed when the player interacts with the respective object.


Editor Node:

disable_effect.txt · Last modified: 2024/01/31 12:33 by justin