Garry's Mod Wiki

Revision Difference

Global.ParticleEffectAttach#518836

<function name="ParticleEffectAttach" parent="Global" type="libraryfunc"> <description> Creates a particle effect with specialized parameters. <note>The particle effect must be precached with <page>Global.PrecacheParticleSystem</page> and the file its from must be added via <page>game.AddParticles</page> before it can be used!</note> </description> <realm>Shared</realm> <args> <arg name="particleName" type="string">The name of the particle effect.</arg> <arg name="attachType" type="number">Attachment type using <page>PATTACH</page>.</arg> <arg name="attachType" type="number">Attachment type using <page>Enums/PATTACH</page>.</arg> <arg name="entity" type="Entity">The entity to be used in the way specified by the attachType.</arg> <arg name="attachmentID" type="number">The id of the attachment to be used in the way specified by the attachType.</arg> </args> </function>