Skip to main content

Mistparticle

Based on game build 714014 | Last updated: 2026-03-06

Overview​

mistparticle is a prefab definition that constructs a non-persistent visual effect entity for rendering mist effects in the environment. It uses the emitter component and a VFX effect system to spawn particles over time with fixed configuration. This entity is intended for localized environmental visuals (e.g., fog in caves or marshes), does not synchronize over the network, and has no active logic beyond initialization.

Usage example​

local mist = Prefab("mist", fn, assets)
local inst = CreateEntity()
inst:AddComponent("transform")
inst:AddComponent("emitter")
inst.Transform:SetPosition(x, y, z)
-- ... configure emitter via inst.components.emitter ...

Dependencies & tags​

Components used: emitter Tags: Adds FX

Properties​

No public properties.

Main functions​

Not applicable.

Events & listeners​

None identified.