Garry's Mod Wiki



  CNewParticleEffect CreateParticleSystem( Entity ent, string effect, number partAttachment, number entAttachment = 0, Vector offset = Vector( 0, 0, 0 ) )


Creates a new particle system.

The particle effect must be precached with PrecacheParticleSystem and the file its from must be added via game.AddParticles before it can be used!


1 Entity ent
The entity to attach the control point to.
2 string effect
The name of the effect to create. It must be precached.
3 number partAttachment
4 number entAttachment = 0
The attachment ID on the entity to attach the particle system to
5 Vector offset = Vector( 0, 0, 0 )
The offset from the Entity:GetPos of the entity we are attaching this CP to.


1 CNewParticleEffect
The created particle system.

Special Pages



Render Time: 26ms

DB GetPage 2
Generate Html 8
SaveChanges (1) 6
Render Body 0
Render Sidebar 7