Garry's Mod Wiki

Revision Difference

Global.ParticleEffectAttach#511309

<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 &lt;page&gt;PATTACH&lt;/page&gt;.</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>⤶ ⤶