CreateParticleSystem
CNewParticleEffect CreateParticleSystem( Entity ent, string effect, number partAttachment, number entAttachment = 0, Vector offset = Vector( 0, 0, 0 ) )
Description
Creates a new particle system. See also Entity:CreateParticleEffect, ParticleEffectAttach and CreateParticleSystemNoEntity.
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
5 Vector offset = Vector( 0, 0, 0 )
The offset from the Entity:GetPos of the entity we are attaching this CP to.
Returns
Example
Creates a big explosion effect at the player's feet, and deletes it 0.1 seconds after starting.