- Documentation
- Shared functions
- getParticlePresets
Function
getParticlePresets
Returns the ready-made particle effects as a { name = description } table.
Syntax
table getParticlePresets()Returns
The presets.
Example
for name, description in pairs(getParticlePresets()) do
outputChatBox(name .. ": " .. description)
end
See also
getParticlePresetSettingsReturns a copy of a preset's full settings, as a starting point for your own.createParticleEmitterCreates an emitter of moving particles simulated by the game: fire, smoke, sparks, snow, portals and anything you build from the settings. The fourth argument is a preset name or a settings table, the fifth overrides chosen fields of the preset. Returns a"particle"element that can be moved, attached and destroyed like any other. Called on the server, it creates an emitter every player sees.