s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Components
ParticleEmitter
chevron_left
Components
class
ParticleEmitter
search
Constructors
lock
ParticleEmitter
Fields
lock
evaluatedRateOverDistance
crop_din
time
Properties
data_object
Burst
data_object
Delay
data_object
Delta
data_object
DestroyOnEnd
data_object
Duration
data_object
EmitRandom
data_object
IsBursting
data_object
Loop
data_object
Rate
data_object
RateOverDistance
Methods
functions
Emit
lock
EmitOverDistance
lock
GetBurstCount
lock
GetRateCount
lock
OnBurst
lock
OnDisabled
lock
OnEnabled
functions
ResetEmitter
menu
ParticleEmitter
Creates particles. Should be attached to a Sandbox.ParticleEffect.
class
Sandbox
.
account_tree
extends
Component
abstract
Sandbox.Engine
build
Constructors
1
ParticleEmitter
(
)
crop_din
Fields
2
evaluatedRateOverDistance
float
time
float
data_object
Properties
10
Burst
ParticleFloat
How many particles to emit, in a burst
Delay
ParticleFloat
How many seconds to wait before the emitter starts
Delta
float
0-1, the life time of the emitter
DestroyOnEnd
bool
Whether to destroy the GameObject when the emitter finishes (only applies when Loop is false)
Duration
ParticleFloat
How long the emitter should run for, after the Delay
EmitRandom
float
0-1, a random number to be used for this loop of the emitter
IsBursting
bool
True if we're doing a burst
Loop
bool
Whether the emitter should restart after finishing
Rate
ParticleFloat
How many particles to emit over time
RateOverDistance
ParticleFloat
How many particles to emit per 100 units moved
functions
Methods
8
Emit
(
target
)
bool
EmitOverDistance
(
)
GetBurstCount
(
)
int
Allows child emitters to override how many particles are in a burst
GetRateCount
(
)
int
Allows child emitters to override how many particles are in a rate
OnBurst
(
)
OnDisabled
(
)
OnEnabled
(
)
ResetEmitter
(
)
Inheritance
Component
ParticleEmitter
ParticleBoxEmitter
ParticleConeEmitter
ParticleModelEmitter
ParticleRingEmitter
ParticleSphereEmitter
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.