CreateParticleSystem

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

Contents

Description

Creates a new particle system.

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

Entity ent

The entity to attach the control point to.

Arguments

string effect

The name of the effect to create. It must be precached.

Arguments

number partAttachment

Arguments

number entAttachment=0

The attachment ID on the entity to attach the particle system to

Arguments

Vector offset=Vector( 0, 0, 0 )

The offset from the Entity:GetPos of the entity we are attaching this CP to.

Returns

CNewParticleEffect

The created particle system.
Personal tools
Navigation