Garry's Mod Wiki

Revision Difference

Entity:CreateParticleEffect#515758

<function name="CreateParticleEffect" parent="Entity" type="classfunc">⤶ <description>⤶ Creates a clientside particle system attached to the entity. See also <page>Global.CreateParticleSystem</page>⤶ ⤶ <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>Client</realm>⤶ <args>⤶ <arg name="particle" type="string">The particle name to create</arg>⤶ <arg name="attachment" type="number">Attachment ID to attach the particle to</arg>⤶ <arg name="options" type="table" default="nil">A table of tables ( IDs 1 to 64 ) having the following structure:&#xA;* &lt;page&gt;number&lt;/page&gt; attachtype - The particle attach type. See &lt;page&gt;PATTACH. **Default:** PATTACH_ABSORIGIN&lt;/page&gt;&#xA;* &lt;page&gt;Entity&lt;/page&gt; entity - The parent entity? **Default:** NULL&#xA;* &lt;page&gt;Vector&lt;/page&gt; position - The offset position for given control point. **Default:** nil&#xA;&#xA;This only affects the control points of the particle effects and will do nothing if the effect doesn&#x27;t use control points.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="CNewParticleEffect">The created particle system.</ret>⤶ </rets>⤶ </function>⤶ ⤶