Garry's Mod Wiki

CNewParticleEffect:AddControlPoint

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

Description

Adds a control point to the particle system.

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

Arguments

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 string entAttachment = nil
The attachment name 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.