Garry's Mod Wiki

ParticleEffectAttach

  ParticleEffectAttach( string particleName, number attachType, Entity entity, number attachmentID )

Description

Creates a particle effect with specialized parameters. See also Entity:CreateParticleEffect and CreateParticleSystem.

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

Arguments

1 string particleName
The name of the particle effect.
2 number attachType
Attachment type using PATTACH enum.
3 Entity entity
The entity to be used in the way specified by the attachType.
4 number attachmentID
The id of the attachment to be used in the way specified by the attachType.