Garry's Mod Wiki

CreateParticleSystem

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

Description

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!

Arguments

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.

Returns

1 CNewParticleEffect
The created particle system.

Page Links


Special Pages


Wikis

?

Render Time: 96ms

DB GetPage 42
Generate Html 18
SaveChanges (1) 21
Render Body 0
Render Sidebar 13