- Documentation
- Shared functions
- getParticlePresetSettings
Function
getParticlePresetSettings
Returns a copy of a preset's full settings, as a starting point for your own.
Syntax
table getParticlePresetSettings(string name)Arguments
namestring- The preset name.
Returns
The settings or false for an unknown name.
Example
local green = getParticlePresetSettings("fire")
green.colors = { tocolor(120, 255, 120), tocolor(20, 120, 40, 0) }
createParticleEmitter(x, y, z, green)
See also
getParticlePresetsReturns the ready-made particle effects as a{ name = description }table.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.