Garry's Mod Wiki


  CNewParticleEffect:AddControlPoint( number cpID, Entity ent, number partAttachment, number entAttachment = 0, Vector offset = Vector( 0, 0, 0 ) )


Adds a control point to the particle system.

This function will not work if the CNewParticleEffect:GetOwner entity is not valid


1 number cpID
The control point ID, 0 to 63.
2 Entity ent
The entity to attach the control point to.
3 number partAttachment
4 number entAttachment = 0
The attachment ID on the entity to attach the particle system to
5 Vector offset = Vector( 0, 0, 0 )
The offset from the Entity:GetPos of the entity we are attaching this CP to.