Garry's Mod Wiki

Garry's Mod Wiki

  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! This is due to the function using networked IDs for particle names, not directly networking particle system name.

Clientside, you can use CreateParticleSystemNoEntity (and similar) instead.

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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...