Garry's Mod Wiki

Revision Difference

CNewParticleEffect:AddControlPoint#518235

<function name="AddControlPoint" parent="CNewParticleEffect" type="classfunc"> <description> Adds a control point to the particle system. <note>This function will not work if the <page>CNewParticleEffect:GetOwner</page> entity is not valid</note> </description> <realm>Client</realm> <args> <arg name="cpID" type="number">The control point ID, 0 to 63.</arg> <arg name="ent" type="Entity">The entity to attach the control point to.</arg> <arg name="partAttachment" type="number">See &lt;page&gt;PATTACH&lt;/page&gt;.</arg> <arg name="partAttachment" type="number">See <page>PATTACH</page>.</arg> <arg name="entAttachment" type="number" default="0">The attachment ID on the entity to attach the particle system to</arg> <arg name="offset" type="Vector" default="Vector( 0, 0, 0 )">The offset from the &lt;page&gt;Entity:GetPos&lt;/page&gt; of the entity we are attaching this CP to.</arg> <arg name="offset" type="Vector" default="Vector( 0, 0, 0 )">The offset from the <page>Entity:GetPos</page> of the entity we are attaching this CP to.</arg> </args> </function>