Entity/CreateParticleEffect

From Garry's Mod
Jump to: navigation, search
 Entity:CreateParticleEffect( )

Contents

Description

Creates a clientside particle system attached to the entity. See also CreateParticleSystem

NOTE

The particle effect must be precached with PrecacheParticleSystem and the file its from must be added via game.AddParticles before it can be used!

Arguments

string particle

The particle name to create

Arguments

number attachment

Attachment ID to attach the particle to

Arguments

table options=nil

A table of tables ( IDs 1 to 64 ) having the following structure:

  • number attachtype - The particle attach type. See PATTACH_ Enums. Default: PATTACH_ABSORIGIN
  • Entity entity - The parent entity? Default: NULL
  • Vector position - The offset position for given control point. Default: nil
This only affects the control points of the particle effects and will do nothing if the effect doesn't use control points.

Returns

CNewParticleEffect

The created particle system.
Personal tools
Navigation